Aller au contenu
GET /v1/price

Oracle price for a single token by symbol

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/gmx-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

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