Naar de inhoud
GET /v1/price

One feed's latest aggregate price

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
        "base": "BTC",
        "expo": -8,
        "price": 61369.9,
        "quote": "USD",
        "source": "Pyth Network",
        "symbol": "BTC/USD",
        "ema_price": 61432.82,
        "asset_type": "Crypto",
        "confidence": 21.27,
        "publish_time": "2026-06-10T22:57:06.000Z"
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:09.557Z",
        "request_id": "d7d7a561-0e13-49cf-b5a8-9b12573d332d"
    },
    "status": "ok",
    "message": "Price retrieved successfully",
    "success": true
}