Skip to main content
GET
Orderbook snapshot

Path Parameters

symbol
string
required

Market symbol, e.g. UAE-CUP-FINAL-20260425. Used by sub-resource endpoints (/orderbook, /trades, /ohlc, /traders). The root market-detail endpoint /api/markets/{slug} accepts the slug instead — see MarketSlug.

Query Parameters

outcome
integer

Outcome index, digits only: anything else (an empty value, 1.0, 1abc) answers 400 invalid_outcome, as does an index past the outcomes the market lists. Omitting it aggregates across all outcomes on an N-ary market; on a binary market it returns the canonical YES book (outcome=0), which already carries both outcomes.

Required range: x >= 0
depth
integer
default:50

Max price levels per side (digits-only positive integer up to 1000; omitted or empty means 50; non-digit or out-of-range answers 400 invalid_depth).

Required range: 1 <= x <= 1000

Response

200 - application/json

OK

symbol
string
required
bids
object[]
required
asks
object[]
required
hash
string
required

16-hex-char canonical hash of (bids, asks); equals the WS book frame hash for the same state.

seq
integer
required

Matcher per-outcome native book sequence number (comparable to data.nativeSeq on WebSocket book_update/book_snapshot frames, not the per-pod WebSocket frame.seq cursor; resets on matcher reload; 0 before the first book event after engine start/restart, on aggregate multi-outcome views where no single outcome was requested, or when unavailable; clients should only compare seq > 0 against WS data.nativeSeq, and on legacy non-binary mirror-eligible 2-outcome markets seq reflects the requested outcome's own counter, matching data.nativeSeq).

Example:

100

mirrorSeq
integer

On legacy non-binary mirror-eligible 2-outcome markets where core-api and ws-gateway merge complement levels from the opposite outcome, mirrorSeq reflects the opposite outcome's matcher sequence number (omitted when the opposite outcome book does not exist yet). Undefined on single-outcome, native binary (is_binary=true), or multi-outcome aggregate views. Clients reconciling merged views should compare (seq, mirrorSeq) or reconcile against the WS frame's top-level hash (noting that the WS full-book hash differs from depth-capped REST hashes when a side exceeds REST depth; clients must not drop WS frames solely because data.nativeSeq <= REST seq).

Example:

101