Polymarket order book API
A keyless catalog and coverage ledger, and signed URLs onto object storage for the tape itself. One schema across every market, both clocks on every row, and an open reader for the wire format so nothing of ours sits between you and the files.
This is a historical data API, not a live feed. There is no websocket and no streaming endpoint: you ask which files cover a window, we sign them, and you read them from object storage. If you need a real-time book, the venue’s own socket is the right answer and we would rather say that here than after you have spent an evening on it.
The endpoints
Four of these need no key at all, which is deliberate: verification has to be free or it is not verification.
| Endpoint | Auth | What it answers |
|---|---|---|
GET /v1/catalog/series | no key | Every series in the catalog, filterable by category or search. |
GET /v1/catalog/markets | no key | Markets for a series, with outcome tokens and resolutions. |
GET /v1/catalog/coverage | no key | The ledger for one token: recorded ms, gaps and uptime per hour. |
GET /v1/data/datasets | no key | What the lake holds and the window it covers. |
GET /v1/data/files | key | The files matching a dataset, format and window. |
POST /v1/data/urls | key | Short-lived signed URLs for those files. |
GET /v1/data/usage | key | Your quota, from an idempotent usage ledger. |
POST /v1/keys | key | Issue another API key; shown once, stored hashed. |
The whole surface is generated from the document the server serves — openapi.json.
What a book row contains
Both clocks travel with every row. One is what you model against, the other is what you measure latency with, and a dataset that keeps only one has made that choice on your behalf.
| Column | Type | Meaning |
|---|---|---|
recv_ns | int64 | when our recorder received the message, nanoseconds since the epoch |
venue_ns | int64 | the venue's own timestamp, nanoseconds (Polymarket sends milliseconds) |
token_id | string | the outcome token this book belongs to |
seq | int64 | arrival order within the file - apply rows in this order |
op | string | snap (a checkpoint level), set (a level's new size; 0 removes it), trade |
side | int8 | 0 bid, 1 ask; for a trade, the aggressor |
price, size | decimal | the level's price from 0 to 1, and the size now resting at it |
level | int16 | the level's position on its side after the change; 0 is best |
The full book is delivered as Probe, lossless and with an open reader, or per market-day as parquet or CSV. lp2, the format of the earlier three-level book, is no longer delivered; files already downloaded stay readable with the open-source probnode-sdk.
A download, end to end
1. Find the files
GET /v1/data/files with a dataset, a format and a UTC window returns the objects and their sizes before you commit to anything.
2. Sign them
POST /v1/data/urls returns short-lived URLs straight onto object storage. Nothing of ours is in the download path.
3. Read them
Parquet with whatever you already use; Probe with its open reader. One schema across every market, so the code you write once keeps working.
Quotas count signed URLs a day, not rows and not requests, and they come from an idempotent ledger — a retried request is never counted twice. What each plan allows →
Polymarket historical order book data
The full book at every tick: each level's price and size on both sides, as Polymarket's websocket published it, kept unthrottled and with nothing behind the best price thrown away. Delivered per hour or per market-day, in parquet, csv.gz or our open full-book format.
POST /v1/data/exports builds one market's day of the full book as a single file and caches it, so the second request for the same day is a download rather than a build.
Order book history vs the websocket
Polymarket's websocket gives the live book: subscribe, and you see what changes from that moment on. It has no history - a gap while your connection is down is a gap for good, and nothing tells you it happened.
We run that connection continuously, record every message, and write every outage into a gap journal. The coverage ledger is built from it: for each market and hour, the milliseconds recorded and the gaps declared, so a replay knows exactly which stretches it can trust.
Depth: every level, or the top ten, or the best price
Three book schemas from one tape: the full ladder (book-max), the top ten levels on each side (book-10) and the top of book (book-top), plus the top of book sampled each second or minute. Pick the one the model needs - a market maker wants the ladder, a signal often only the top.
Every row of every one carries both clocks, the venue's and the recorder's, so the order of events is the order they happened rather than the order a file was written.
Order book imbalance and microstructure
Imbalance, queue size at the touch, spread and depth-weighted mid all need the levels behind the best price, and sampled price history does not have them. With the full ladder at tick resolution they are a few lines over a parquet file.
Trades come with the book as it stood when they printed (trade-quotes), so slippage and aggressor side can be measured rather than guessed.
Rate limits
Two ceilings per key, counted separately: signed URLs per day and requests per minute. Free is 50 a day and 60 a minute; the research and academic plans 20,000 and 600; pro 200,000 and 3,000. Over the minute is a 429 with Retry-After; over the day is a 429 without it.
The catalogue, the ledger, the schema registry and pricing a basket are not counted at all - a client can find out what something costs as often as it likes before committing to it.
Two timestamps on every row
Each book change and each trade carries the time Polymarket stamped it and the time our recorder received it. The gap between them is the feed's latency for that message, a column you can read - and sorting by the venue's clock gives the order events happened in, not the order a socket delivered them.
One market's whole day of the book
POST /v1/data/exports builds one market's UTC day of the full book as a single parquet or csv.gz file, after the day has ended, and caches it - the second request is a download. From the shell: probnode export <market> <day>.
probnode export <market-slug> 2026-11-18 --format parquet -o data
How fresh the history is
How recent the readable archive is depends on the access you have. An hour that is not yet readable on your access answers 403 - the rows arrive later - which is a different answer from 402, a dataset your access does not reach.
Polymarket order book data, rebuilt at any millisecond
The full book is an event log, and the rule for turning it into a book is short. Rows that carry the CKPT quality bit and share one receive time are a token's whole book: replace the book you hold. Every other row changes one level - op set gives the level its new size, and size 0 removes it. The book at time T is every row applied in seq order up to the first whose receive time is later than T.
A full-book checkpoint opens every five-minute block, so a file can be read from its start or from any boundary, and no replay ever starts further back than five minutes. For a wide row instead of a log, the book-10 schema writes the top ten levels of both sides after every change.
Joining the order book to the trades
Inside book_full the trades already sit in arrival order beside the level changes, as op trade rows, so a replay sees each print between the updates around it. To join the separate trades files to the book, use the venue's clock - ts_ex_ms in the hourly files, venue_ns in the market-day schemas - and not the receive clock: the book and the trades arrive on different websocket channels, so on receive time a trade can land before the update that caused it.
Each trade carries its transaction hash, which is the join to the on-chain fills and the wallets on each side.
Gaps in the book, and how to read them
The gaps dataset is free and keyless: one row per interval the feed did not cover, with its start and end (t_from_ms, t_to_ms), the recorder shard, the reason and the tokens it touched, plus the recorder's own lifecycle markers. Every book row also carries qual, its quality bits - among them AFTER_GAP and UNSYNCED - and the file header names any token whose state had to be synthesised mid-stream rather than started from a real snapshot, so a doubtful token is named rather than mixed in.
A quiet hour is not a gap. Illiquid markets go minutes without a change; a thin file means nothing happened, a gaps row means we were not connected, and the coverage ledger keeps the two apart per token and hour.
The most traded order books we hold
The series traded most in the last 24 indexed hours, from our own recording - each with its own page, its coverage ledger and the hours we actually hold.
| Series | Trades, 24 h | Markets | Last hour |
|---|---|---|---|
| BTC Up or Down 5m | 410,569 | 4,677 | 2026-11-27 |
| UEFA champions league 2027 champion | 83,206 | 36 | 2026-11-27 |
| ETH Up or Down 5m | 68,349 | 4,657 | 2026-11-27 |
| BTC Up or Down 15m | 62,675 | 1,605 | 2026-11-27 |
| UEFA Europa League 2025 | 59,358 | 4,282 | 2026-11-27 |
| Counter Strike | 51,917 | 4,885 | 2026-11-27 |
| NBA 2026 | 32,163 | 55,645 | 2026-11-27 |
| Dota 2 | 29,036 | 2,008 | 2026-11-27 |
| Europa Conference League | 28,090 | 3,963 | 2026-11-27 |
| ETH Up or Down 15m | 26,559 | 1,553 | 2026-11-27 |
| SOL Up or Down 5m | 25,841 | 4,638 | 2026-11-27 |
| NFL 2026 | 24,936 | 34,421 | 2026-11-27 |