OKX Order Book
Aggregated order book for one instrument at a requested depth, with per-level size and order count.
GET /v1/market/orderbook $0.005 per call
Specification
- Endpoint
GET /v1/market/orderbook- Price
- $0.005 per call · tier
basic_data - Payment
-
x402 on X Layer (chain 196) · settled in USDG or USDT0 · schemes
exact,aggr_deferred - Data source
- OKX public market REST/WebSocket API
- Timeout
- 15 seconds
- Max request
- 16 KB
- Version
1.0.0
Calling it
The first call returns a 402 with the payment challenge. Retry with a
signed authorisation in the X-PAYMENT header — see
the payment guide for the exact shape.
curl -i "https://api.dana-edu.pp.ua/v1/market/orderbook" Response
Every response is wrapped in the same envelope: data plus
warnings, sources, confidence,
informational_only and a measured processing_ms.
See the envelope reference.
Related endpoints
OKX Instrument Directory
List every tradable instrument on OKX for a given instrument type, with contract specifications, tick size, lot size and listing state.
OKX Instrument Details
Full contract specification for a single OKX instrument, including tick size, contract multiplier, settlement currency and expiry.
OKX Market Ticker
Latest traded price, best bid/ask, 24-hour open, high, low and volume for one OKX instrument.
OKX Bulk Ticker Snapshot
Ticker snapshot for every instrument of a given type in one call, for cross-market scanning without per-symbol requests.