Zum Inhalt springen
GET /v1/meta

Spec

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

Beispiel-Response

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

{
    "data": {
        "source": "OKX public API v5 (live)",
        "service": "okx-api",
        "endpoints": {
            "GET /v1/meta": "This document.",
            "GET /v1/ticker": "An instrument's ticker (inst=BTC-USDT or BTC-USDT-SWAP).",
            "GET /v1/candles": "OHLC candles (inst=BTC-USDT, bar=1m..1M).",
            "GET /v1/funding": "Perpetual funding rate + APR (inst=BTC-USDT-SWAP or BTC-USDT).",
            "GET /v1/tickers": "All instruments of a type (type=SPOT|SWAP|FUTURES, sort=change|volume)."
        },
        "description": "Live market data from OKX across spot and perpetual markets, from its public v5 API: any instrument's ticker (last, bid/ask, 24h open/high/low, volume, 24h % change) for a spot pair or a perpetual swap; every instrument of a type (spot, swap, futures) in one call, sortable; OHLC candles at a chosen bar (1m to 1M); and the funding rate of any perpetual swap with the rate annualised to an APR and the next funding time. Live, no key, nothing stored. Distinct from Coinbase, Bitstamp, Binance and Kraken venue APIs and from aggregated feeds — this is OKX's own spot and perpetual order flow and its per-contract funding rates.",
        "upstream_status": "ok"
    },
    "meta": {
        "timestamp": "2026-06-09T20:24:48.820Z",
        "request_id": "2c0124dc-9ba2-4c47-bb68-093d3b1fd989"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}