Get 24h Ticker
Get All Tickers
Field Notes
The rolling window cutoff is the snapshot time minus 24 hours.
A gap between
previousClose and open is expected when no trade lands exactly at the cutoff.
A 503 with 24h ticker window not yet available is retryable. See
Errors.
Get Orderbook
Levels use the same ordering as the WebSocket
l2Book channel, so code that switches between REST
snapshots and streaming frames does not need to re-sort.
market_id lets a client call chain query endpoints that key on the binary market identifier without
resolving the symbol map again. Its length varies by market, so treat it as an opaque string. See
Chain Queries.
Maintaining a Local Book
- Subscribe to
l2Bookon Subscriptions and wait for its initial snapshot. - Replace both local book sides with each subsequent
l2Bookframe. Frames contain the published book state, not incremental level deltas; remove levels absent from the replacement. - Treat a REST snapshot as a separate read or fallback. REST
nonceis a block height, whilel2Bookexposes no matching height or sequence. Do not merge buffered frames into REST by comparingnoncewith WebSockettime. - After a disconnect or suspected gap, discard the old stream state, resubscribe, and obtain a new baseline. Neither replay nor lossless recovery of intermediate changes is promised.
Get Recent Trades
Each match writes both a maker leg and a taker leg. This endpoint returns the maker leg only, so a
market’s trades are not double-counted. For one account’s own fills, which can be either leg, use
User Fills.
type is null when the originating order cannot be resolved, and unknown when the chain reports
a type the API does not recognize. On this endpoint order and cloid are always null.
Cursor Pagination
UseX-Next-Cursor and pass it as cursor, keeping filters unchanged. The older paired
before_height and before_index form is also supported. See Pagination.
Get One Trade
id verbatim from /api/v1/trades/{symbol} or /api/v1/mytrades and resolves either
leg of the match. The response has the same shape as the feed above, with order and cloid null.
Use the returned ID verbatim. Its height and open-quantity components use canonical decimal
format, and its full order-ID component uses lowercase hex, including any required leading zeros.
A malformed id returns 400, and an id matching no fill returns 404.