Aller au contenu
GET /v1/ticker

An instrument ticker

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/okx-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/okx-api/v1/ticker" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/okx-api/v1/ticker", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/okx-api/v1/ticker");
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/okx-api/v1/ticker",
    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": {
        "ask": 62013.6,
        "bid": 62013.5,
        "inst": "BTC-USDT",
        "last": 62013.5,
        "time": "2026-06-09T20:24:47.075Z",
        "type": "SPOT",
        "source": "OKX",
        "low_24h": 60770,
        "high_24h": 63854.4,
        "open_24h": 63279.4,
        "volume_24h": 32542.07581913,
        "change_24h_pct": -2.0005,
        "volume_24h_ccy": 2009716251.9101443
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:48.134Z",
        "request_id": "d0340831-4e41-4f23-bf7d-2d9a88f2f19a"
    },
    "status": "ok",
    "message": "Ticker retrieved successfully",
    "success": true
}