Ir al contenido
GET /v1/price

One feed's latest aggregate price

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/pyth-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}