Zum Inhalt springen
GET /v1/prices

Many feeds at once

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/pyth-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 4,
        "prices": [
            {
                "id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43",
                "base": "BTC",
                "expo": -8,
                "price": 61364.06,
                "quote": "USD",
                "symbol": "BTC/USD",
                "ema_price": 61432.82,
                "asset_type": "Crypto",
                "confidence": 20.32,
                "publish_time": "2026-06-10T22:57:06.000Z"
            },
            {
                "id": "ff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace",
                "base": "ETH",
                "expo": -8,
                "price": 1616.79,
                "quote": "USD",
                "symbol": "ETH/USD",
                "ema_price": 1616.52,
                "asset_type": "Crypto",
                "confidence": 0.8,
                "publish_time": "2026-06-10T22:57:06.000Z"
            },
            {
                "id": "a995d00bb36a63cef7fd2c287dc105fc8f3d93779f062f09551b0af3e81ec30b",
                "base": "EUR",
                "expo": -5,
                "price": 1.1533,
                "quote": "USD",
                "symbol": "EUR/USD",
                "ema_price": 1.1535,
                "asset_type": "FX",
                "confidence": 0.0001,
                "publish_time": "2026-06-10T22:57:06.000Z"
            },
            {
                "id": "765d2ba906dbc32ca17cc11f5310a89e9ee1f6420508c63861f2f8ba4ee34bb2",
                "base": "XAU",
                "expo": -3,
                "price": 4051.21,
                "quote": "USD",
                "symbol": "XAU/USD",
                "ema_price": 4055.3,
                "asset_type": "Metal",
                "confidence": 0.94,
                "publish_time": "2026-06-10T22:57:06.000Z"
            }
        ],
        "source": "Pyth Network",
        "requested": 4
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:09.836Z",
        "request_id": "64c2fef5-19ab-4847-80e4-68a9a9296bde"
    },
    "status": "ok",
    "message": "Prices retrieved successfully",
    "success": true
}