Get a free key
Polymarket · Historical data

Polymarket historical data: the full L2 order book archive

Every book snapshot, price change and trade the recorder received since 2026-07-25, plus top-of-book quotes: one Parquet file per stream per UTC day, and the same files cut by market family. Free key; the samples need no key.

Ask your AI · Claude, ChatGPT, CursorConnect in a minute →

“Give me the download link for the BTC 5-minute quotes of 2026-11-02”

polymarket_archive

“Which days of the Polymarket archive are the largest, and how big is a day of book_events?”

polymarket_archive
daily partitions, measured
coverage, UTC days
Parquet, the by-day layout
rows across the three streams
  1. Open a sample

    One complete market in all three streams, the same columns as the archive. No key.

  2. Find the day

    /archive/datasets lists every file with its size and, where recorded, its rows.

  3. Download it

    /archive/url with redirect=true hands you the file; downloads are not counted against your limit.

Download

A day of trades in one command

The same three steps in cURL, Python and the CLI.

bash
curl -O https://data.vike.io/archive/samples/trades.parquet        # sample, no key

curl -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/datasets?stream=trades&from=2026-11-02&to=2026-11-02"

curl -L -o trades-2026-11-02.parquet -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/url?date=2026-11-02&stream=trades&redirect=true"
  • Download whole files, then read them locally; do not point a Parquet reader at the remote URL.
  • Archive downloads do not count against the hourly limit. The samples and manifest.json need no key.
  • A link from /archive/url is valid 7 days and needs no key, so do not share it. Asking for one is one ordinary request.
  • Not every market is in the files: see Coverage.
  • Licence: personal use under the Terms of Service, not for passing on; commercial use needs a written agreement (details).

Archive calendar · /archive/datasets

GET/v1/polymarket/archive/datasets?limit=1000
Open this side to see the captured response.

    
Three streams

Which file to take

l1_quotes if top of book is enough, trades for the tape, book_events for full depth: the other two derive from it and are far smaller.

FileA day’s file, average of the last 7 daysWhat is insideTake it for
l1_quotesbest bid and ask with sizes, one row per changeprices, spreads, a backtest on top of book
tradesthe taker printsvolume, the tape, buy and sell pressure
book_eventsfull L2: snapshots, deltas, trades, markersrebuilding the book at any moment, depth, slippage
Polymarket · Parquet archive · l1_quotes · top of book

Top-of-book quotes

Derived top of book — bid, ask and both sizes, one row per change.

Route
GET /v1/polymarket/archive/url
Cadence
One partition per UTC day
Coverage
Archive only: l1_quotes.parquet per UTC day from 2026-07-25, derived from book_events and published separately because it is far smaller, so it covers the same markets (/data/polymarket/historical-data#coverage). Resolve a file with /archive/url (redirect=1 for a 302); /archive/datasets lists every partition with its size and, where recorded, its row count.
Rows
Free APIArchiveStreamMCP↓ l1_quotes.parquet sample · no key

Fields

FieldTypeDescription
token_idStringThe outcome token
condition_idStringThe market, 0x-prefixed
tsInt64Quote time, epoch milliseconds
local_tsInt64Receive time, epoch milliseconds
bidDecimal(9, 4)Best bid
askDecimal(9, 4)Best ask
bid_sizeDecimal(18, 6)Shares at the best bid
ask_sizeDecimal(18, 6)Shares at the best ask

Real rows

Top-of-book quotes · rows

GET
Open this side to see the captured response.

    

Load it

bash
curl -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/datasets?limit=1000"

# Full history is the Parquet archive. Pick a date from manifest.json (no key needed),
# download the whole file, then read it locally:
DAY=YYYY-MM-DD
curl -L -o l1_quotes-$DAY.parquet -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/url?date=$DAY&stream=l1_quotes&redirect=true"

# Or the free sample — one complete market, no key:
curl -O https://data.vike.io/archive/samples/l1_quotes.parquet

Download whole files, then read them locally — do not point a Parquet reader at the remote URL. Archive downloads need a key but do not count against the hourly limit.

Full reference for /v1/polymarket/archive/url → · every dataset

Polymarket · API + Parquet archive · book_events · full L2

Order-book events

The full L2 tape — book snapshots, price_change deltas, trades, status markers and, from November 2026, tick-size markers (earlier days have none).

Route
GET /v1/polymarket/events
Cadence
Continuous; archive one partition per UTC day
Coverage
API: /events returns up to 24 hours per call and up to 50,000 events per page (next_cursor + has_more), from 2026-07-25; /orderbook returns the nearest book snapshot at or before any instant from then on, depth up to 25. Archive: book_events.parquet per UTC day from 2026-07-25, which also carries condition_id and tick_size. Not every market: /data/polymarket/historical-data#coverage has which ones, by period.
Rows

Fields

FieldTypeDescription
token_idstringThe outcome token (ERC-1155 id)
tsintegerEvent time, epoch milliseconds
local_tsintegerReceive time, epoch milliseconds
seqintegerThe recorder's own count of the frames it applied for this token, not a venue number; 0 on trade, status and tick_size_change rows. It runs on across a lost connection and starts again at 1 after a recorder restart. A jump means rows dropped after they arrived
event_typestringbook | price_change | trade | tick_size_change | status
is_snapshotinteger1 on a full-book row, 0 otherwise
sidestringnone | buy | sell
pricenumberThe changed level (price_change) or the print (trade)
sizenumberShares at that level, or traded
best_bidnumberBest bid after the event, recorded since 2026-11-05 18:02 UTC: Polymarket's own on price_change, the ladder's on book. 0.0 on trade and status rows and on every earlier row
best_asknumberBest ask after the event, recorded since 2026-11-05 18:02 UTC: Polymarket's own on price_change, the ladder's on book. 0.0 on trade and status rows and on every earlier row
bidsstringJSON [[price, size], …] carried as a string; empty when absent
asksstringJSON [[price, size], …] carried as a string; empty when absent
statusstringMarker on status rows: gap_start (the socket was lost), live_resume (it answered again, rows may not have resumed yet: the token's next row says when), stale (no fresh data though the socket stayed up); empty otherwise
tick_sizenumberThe new tick, on tick_size_change rows only: no other row has this field. Those rows exist from November 2026, earlier days have none

Real rows

Order-book events · rows

GET
Open this side to see the captured response.

    

Load it

bash
# replace each {placeholder} with your own value
curl -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/events?token_id={token_id}&from_ms={from_ms}&to_ms={to_ms}&event_type=price_change&limit=50"

# Full history is the Parquet archive. Pick a date from manifest.json (no key needed),
# download the whole file, then read it locally:
DAY=YYYY-MM-DD
curl -L -o book_events-$DAY.parquet -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/url?date=$DAY&stream=book_events&redirect=true"

# Or the free sample — one complete market, no key:
curl -O https://data.vike.io/archive/samples/book_events.parquet

Download whole files, then read them locally — do not point a Parquet reader at the remote URL. Archive downloads need a key but do not count against the hourly limit.

Full reference for /v1/polymarket/events → · every dataset

trades.parquet, the third stream, has its fields, real rows and loading code on the Trades page, beside the on-chain trades with wallets.
Coverage

Which markets the order book holds

The recorder does not hold every Polymarket market. This is what it held, measured against the markets that traded on-chain.

PeriodMarkets recordedOf traded marketsOf fillsOf notional
2026-07-25 to 2026-11-05 18:30 UTCabout 2,140: the biggest 2,100 by lifetime volume, plus the crypto up/down series17-19%72-74%75-82%
since 2026-11-05 19:01 UTCabout 7,400: also the busiest 6,000 over the last 24 hours62%96%98.6%
  • The share is of the markets that traded on-chain in an hour. The earlier period is three whole days; the newer one is one hour so far, 19:03 to 20:03 UTC on 2026-11-05. Between 18:30 and 19:01 UTC that day the list held the busiest 3,000.
  • What is not recorded is mostly small and short-lived: the markets outside the list carried 1.4% of the notional in that hour.
  • 4-hour up/down markets are missing from about 2026-11-01 04:00 to 2026-11-05 17:27 UTC.
  • A market joins the list about 2 minutes after it starts trading, so its first minutes can be missing.
  • Past days cannot be re-recorded. Trades with wallets, from /v1/polymarket/markets/{id}/trades, come from the chain and cover every market.
Gaps

Spans with no data

A gap is a span in which Polymarket was trading and the archive holds no row from any market: from the last row before it to the first row after it, to the millisecond.

Gaps of 30 seconds or more:

From (UTC)ToSecondsExpected rows
2026-07-28 05:21:24.83805:22:29.03064.2325,828
2026-07-28 23:11:31.4912026-07-29 05:20:46.33122,154.898,174,742
2026-07-29 05:23:00.04605:25:04.605124.6551,958
2026-07-29 05:35:56.93905:38:14.378137.4609,033
2026-08-02 08:24:24.65808:32:03.024458.41,944,725
2026-08-05 04:22:33.31004:23:17.07743.8209,190
2026-08-05 04:29:25.26004:30:56.88691.6437,939
2026-08-05 04:40:47.52604:41:39.49152.0248,374
2026-08-13 04:47:34.46804:50:06.756152.3595,265
2026-08-13 19:16:35.05321:26:22.7157,787.730,440,478
2026-08-28 04:16:25.90504:20:50.512264.61,075,504
2026-08-28 23:12:00.5432026-08-29 03:03:13.14513,872.644,040,078
2026-08-29 03:03:33.29703:04:04.49431.299,038
2026-09-01 22:43:47.50522:45:34.875107.4398,250
2026-09-05 23:25:21.69223:30:58.017336.31,255,498
2026-09-11 06:46:41.62706:47:17.92536.3160,409
2026-09-11 16:23:53.03616:24:45.06152.0229,910
2026-09-11 17:35:18.02417:36:28.27470.2310,451
2026-09-20 12:39:20.83612:39:53.93533.1199,094
2026-09-27 04:02:10.58604:05:05.020174.4929,149
2026-10-02 00:45:01.40000:46:36.91895.5676,665
2026-10-02 00:46:51.87300:48:57.247125.4888,170
2026-10-02 00:48:57.24700:49:31.64134.4243,653
2026-10-08 04:02:11.15704:05:42.965211.81,469,231
2026-10-13 15:42:50.39816:48:14.7923,924.426,057,126
2026-10-22 05:03:43.40105:05:10.36687.0578,554
2026-10-27 15:22:50.72915:23:49.28158.6361,087
2026-10-27 15:35:00.02315:36:50.269110.2679,881
2026-10-29 05:29:30.80905:30:24.90154.1372,629
2026-11-05 06:08:28.45306:09:38.82470.4512,896

Expected rows: at the day's median rate.

Two layouts

By day, or by market family

The same recording and the same columns, cut two ways.

LayoutBy dayBy market family
Filevenue=polymarket/date=YYYY-MM-DD/{stream}.parquetvenue=polymarket/asset=<asset>/tenor=<tenor>/date=YYYY-MM-DD/{stream}.parquet
Foreverything that dayone family without downloading the whole day
Families—btc, eth, sol, xrp, doge, bnb, hype × 5m, 15m, 4h; other/other holds every other market and is the largest
From2026-07-252026-07-26
A date isSince 2026-11-05 the UTC day a row was received (local_ts); before that, the UTC day of ts
bash
curl -L -o btc-5m-l1.parquet -H "X-API-KEY: $VIKE_API_KEY" \
  "https://data.vike.io/v1/polymarket/archive/url?date=2026-11-02&stream=l1_quotes&asset=btc&tenor=5m&redirect=true"
FAQ

Polymarket historical data FAQ

Does the archive cover every Polymarket market?
No. Since 2026-11-05 19:01 UTC it holds about 7,400 markets, 98.6% of the notional traded in the first full hour we measured; before that about 2,140 markets, 75-82% of the notional. The Coverage section has the numbers.
Where can I download Polymarket historical data?
Here: one Parquet file per stream per UTC day since 2026-07-25, on a free key. The samples and manifest.json need no key.
Is there a Polymarket order book history?
Yes. book_events holds every book snapshot and price change the recorder received, so the book can be rebuilt at any moment since 2026-07-25.
Can I get only the 5-minute BTC markets?
Yes: the family layout, asset=btc and tenor=5m, one file per stream per day from 2026-07-26.
Which rows does a file's date cover?
Since 2026-11-05: the rows received that UTC day, 00:00 to 24:00 by local_ts, so a file is complete when it is published. A few book snapshots in it carry a ts up to days older than the date. Files before 2026-11-05 hold the UTC day of ts, of rows received before that date. The 2026-11-04 file also ends with 258,755 rows of older days, mostly book snapshots, that arrived after their own day's file was written.
What is the licence?
Personal use under the Terms of Service, not for passing on; commercial use needs a written agreement.