Vai al contenuto
GET /v1/breakeven

Profit & breakeven hashprice for your power cost and efficiency

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/hashprice-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/hashprice-api/v1/breakeven" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hashprice-api/v1/breakeven", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hashprice-api/v1/breakeven");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/hashprice-api/v1/breakeven",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Mining profitability at your inputs. Give power_cost (your electricity price in USD per kWh, default 0.05) and efficiency (your rig's J/TH, default 20 — lower is better; an S21 is ~17.5). It returns, per TH/s per day, the revenue (the live hashprice), the electricity cost (efficiency × 24h × power_cost) and the profit, the margin, and the breakeven hashprice — the hashprice below which you mine at a loss. Live, cached ~5m.",
        "source": "mempool.space + Yahoo Finance, keyless",
        "margin_pct": 25.59,
        "profitable": true,
        "efficiency_j_per_th": 20,
        "power_cost_usd_per_kwh": 0.05,
        "profit_usd_per_ths_day": 0.008253,
        "revenue_usd_per_ths_day": 0.032253,
        "hashprice_usd_per_ths_day": 0.032253,
        "power_cost_usd_per_ths_day": 0.024,
        "breakeven_hashprice_usd_per_phs_day": 24
    },
    "meta": {
        "timestamp": "2026-06-13T04:42:54.050Z",
        "request_id": "bf83328f-0624-4341-89f9-da8c488e93cf"
    },
    "status": "ok",
    "message": "Breakeven retrieved successfully",
    "success": true
}