Orderbook
Trading
Orderbook
Retrieve orderbook snapshots for prediction market outcomes
POST
Orderbook
Overview
The Orderbook endpoint returns current bid and ask levels for one or more outcome tokens. This provides a real-time view of available liquidity at different price points.Authentication
This endpoint does not require authentication. It provides public market data. Required Headers:Content-Type: application/jsonAccept: application/json
Request Body
Send an array of token ID objects:The outcome token ID to retrieve orderbook data for. Multiple tokens can be requested in a single call.
Response
Returns an array of orderbook summaries:The outcome token ID
Last Trade Prices
The companion endpoint/last-trades-prices provides recent trade information:
Outcome token ID
Last trade price (decimal between 0 and 1)
Last trade side:
BUY or SELLOrderbook Structure
Bid Levels (Buy Orders)
- Sorted from highest to lowest price
- Represents demand - traders willing to buy
- Higher prices indicate stronger buying interest
Ask Levels (Sell Orders)
- Sorted from lowest to highest price
- Represents supply - traders willing to sell
- Lower prices indicate stronger selling pressure
Spread
The difference between the best bid (highest buy price) and best ask (lowest sell price). Example:- Best bid: 0.64 (64%)
- Best ask: 0.67 (67%)
- Spread: 0.03 (3%)
Orderbook Depth
The response includes up to 12 price levels per side:- 12 bid levels maximum
- 12 ask levels maximum
- Levels with zero size are filtered out
Price Rounding
Display Prices
Prices are rounded to the nearest 0.1 cent:- Bids rounded down (e.g., 0.647 → 0.64)
- Asks rounded up (e.g., 0.643 → 0.65)
Raw Prices
Internal calculations use full precision to prevent rounding errors.Example Request
cURL - Single Token