Vai al contenuto
GET /v1/price

One feed's latest aggregate price

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}