Naar de inhoud
GET /v1/apr

Net staking APR over 1d/7d/30d from on-chain rate growth

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/lido-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/lido-api/v1/apr" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lido-api/v1/apr", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lido-api/v1/apr");
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/lido-api/v1/apr",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Lido's net staking APR (after Lido's protocol fee), derived directly from the on-chain wstETH→stETH exchange rate, which only grows as staking rewards accrue. For each window (1d, 7d, 30d) the rate at that point in the past is read from historical chain state and the growth is annualised using the real elapsed time between blocks — so these are the actual yields a wstETH holder earned, not a marketing figure. A window may be null if historical state for it is unavailable. The 7d and 30d figures are the more stable reads (1d is noisier). Live, cached ~90s.",
        "source": "Ethereum wstETH contract historical state via public RPC (ethereum-rpc.publicnode.com), keyless",
        "at_block": 25306236,
        "rate_now": 1.23685985,
        "net_apr_pct": {
            "1d": 2.37,
            "7d": 2.54,
            "30d": 2.44
        }
    },
    "meta": {
        "timestamp": "2026-06-13T04:42:40.844Z",
        "request_id": "f40e765a-b962-48fd-a776-266cefe5b74e"
    },
    "status": "ok",
    "message": "APR retrieved successfully",
    "success": true
}