Documentation Index
Fetch the complete documentation index at: https://docs.polydata.live/llms.txt
Use this file to discover all available pages before exploring further.
What is an order book?
An order book is a list of all open buy (bid) and sell (ask) orders for a particular asset, sorted by price. Polymarket uses a Central Limit Order Book (CLOB) where market makers post limit orders and takers fill them. Each market in Polymarket has two sides:- YES outcome
- NO outcome
L1 vs L2 vs L3
| Level | What’s included | Use case |
|---|---|---|
| L1 | Best bid + best ask only | Display the current price |
| L2 | All price levels with aggregated size | Backtesting, depth analysis |
| L3 | Every individual order with order ID | Market microstructure research |
Example
best_bid= highest price someone is willing to buy atbest_ask= lowest price someone is willing to sell atbids[]= sorted descending (highest first)asks[]= sorted ascending (lowest first)(best_ask - best_bid)= spread(best_bid + best_ask) / 2= midpoint
Reconstructing historical state
PolyData stores two types of records:- Snapshots (
bookevents) — Full orderbook at a moment in time - Changes (
price_changeevents) — Incremental updates to specific price levels
price_change events on top.
The /v1/orderbook?timestamp=... endpoint handles this automatically — you just specify a timestamp and get back the full reconstructed book.
Tick size and price grid
Polymarket prices are in the range[0, 1] (probability of YES outcome). Tick sizes are typically:
0.001(1/10 of a cent)0.01(1 cent) — for less liquid markets