Zum Inhalt springen
GET /v1/ticker

An instrument ticker

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

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