Get order book history
Paginated history of raw CLOB orderbook snapshots including full bids/asks levels and derived metrics. Default limit 20, max 200. bids and asks are arrays of {"p": price, "s": size} objects, sorted best-first.
Query Parameters
Token ID (required if condition_id / market_slug not set)
Condition ID — returns history for all positions in this market
Market slug (alternative to condition_id)
Start timestamp (Unix milliseconds, inclusive)
End timestamp (Unix milliseconds, inclusive)
Only return snapshots with spread >= this value
Only return snapshots with spread <= this value
Only return snapshots where total liquidity (bid + ask) >= this value
Number of results (default: 20, max: 200)
Cursor from previous response's pagination.pagination_key
Response
Orderbook snapshot rows, newest first. ts is Unix milliseconds.
Unix timestamp in seconds.
Position ID.
Condition ID.
Bid levels for the order book.
Ask levels for the order book.
Order book snapshot hash.
Best bid.
Best ask.
Mid price.
Spread.
Bid liquidity in USD.
Ask liquidity in USD.
Bid levels.
Ask levels.