Naar de inhoud
GET /v1/price

Oracle price for a single token by symbol

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "chain": "arbitrum",
        "source": "GMX",
        "symbol": "BTC",
        "address": "0x47904963fc8b2340414262125aF798B9655E58Cd",
        "decimals": 8,
        "synthetic": true,
        "spread_bps": 0,
        "spread_usd": 0,
        "updated_at": "2026-06-10T22:57:54.021Z",
        "max_price_usd": 61374.4125,
        "mid_price_usd": 61374.4125,
        "min_price_usd": 61374.4125
    },
    "meta": {
        "timestamp": "2026-06-10T22:57:54.616Z",
        "request_id": "a864b73d-d48e-4934-a991-acd8aeceb687"
    },
    "status": "ok",
    "message": "Price retrieved successfully",
    "success": true
}