Polymarket trades as CSV
Trades and order books as csv.gz, parquet or probe, one file per hour and market, downloaded from a page rather than from a terminal if you would rather not write any code.
Which format to take
csv.gz
Opens in anything. Right for trades, for a look at one market-hour, and for handing a file to somebody who will open it in a spreadsheet. Wrong for the book at any size: see below.
parquet
What to use for anything you will run twice. Columnar, typed, and read natively by pandas, polars, DuckDB and every warehouse, so no parsing code and no guesswork about what a column holds.
Probe
The format the book is recorded in: lossless, about three times smaller than parquet, with an open reader under Apache-2.0 so nothing is locked behind our tooling. The full book and the trades also come per market-day as parquet or CSV.
CSV is the wrong format for order books and it is worth being blunt about it. A book generates a row for every change at every level, so an hour of one active market is large before compression and enormous as text, and CSV carries no types - every timestamp and every price arrives as a string for you to parse and get subtly wrong. Take parquet for the book. CSV is genuinely fine for trades, which are sparse by comparison.
What a trade row contains
| Column | Type | Meaning |
|---|---|---|
recv_ns | int64 | when our recorder received the trade, nanoseconds since the epoch |
venue_ns | int64 | the venue's timestamp, nanoseconds (Polymarket sends milliseconds) |
token_id | string | the outcome token that traded |
side | int8 | the aggressor: 0 buy, 1 sell |
price, size | decimal | the execution price from 0 to 1, and the shares |
tx_hash | string | the transaction it settled in - the join to the on-chain fills |
Trades ship as parquet; the book as parquet, csv. Prices are probabilities between 0 and 1, not currency, which is the one thing that surprises people arriving from equities data.
Downloading without writing code
Pick a dataset, a format and a UTC window on one page; it gives you the files, their sizes, and a download link each. The same selection lives in the URL, so the page is also a link you can send to somebody.
Polymarket price history API
Two ways in. Without a key, /v1/catalog/markets/{slug}/sparkline returns a market's hourly closes over the last day or week, computed from the trades we recorded rather than fetched from the venue. With a key, /v1/timeseries returns one market's rows over any window as JSON.
For research over many markets the trades and bars datasets are the better tool: one file per market-day or per hour, every print, no paging.
curl https://probnode.com/v1/catalog/markets/btc-updown-5m-1795155000/sparkline
Get price history for a market
Find the market's slug in the catalogue (/v1/catalog/markets?series=...), then either read its sparkline or download its trades for the days you need. Bars at one second, one minute, one hour and one day come from the same recorded tape, each documented in the schema registry.
The sparkline's prices are those of the market's first outcome - Yes, Up - and a print of the other outcome at p is counted as 1 - p, the way the venue's own pairs work.
Polymarket trades API
Every trade in arrival order, with price, size, side, both timestamps and the transaction hash, from the venue's websocket. /v1/data/files lists the trade files for a window; /v1/files/trades/{format}/{day}/{market} is one market's day.
Trades with the book as it stood (trade-quotes) and on-chain fills are separate schemas from the same tape, documented in the schema registry.
CSV or Parquet
Both, with the same columns in each. csv.gz opens anywhere; parquet is smaller, typed and far faster to scan, and is what a backtest over more than a few days should use. The columns are the ones a replay emits and a live tail carries, so nothing is re-mapped between history and live.
Every file is listed with its row count and sha256 before you download it.
CLOB price history vs recorded trades
Polymarket's CLOB history endpoint returns sampled prices: a point every interval, with no record of what traded between two points or how much. It is fine for a chart and wrong for a fill model.
The trades here are every print the websocket published, recorded as they arrived, with the hours we did not capture declared in the coverage ledger instead of interpolated.
Trades with the book as it stood
The trade-quotes schema joins each print to the book at the moment it happened, so slippage against the touch, the aggressor's side and the depth it walked through are columns rather than a reconstruction.
On-chain fills
Separately from the websocket's trades, the fills schema is one row per OrderFilled log read from our own Polygon node: both wallets, the order hash, price, size and fee, with reorg reversals marked. It is the settlement record, where the websocket is the venue's announcement of it.
OHLC bars: one second to one day
Bars at one second, one minute, one hour and one day for every market, each a schema of its own in the registry, for research that wants a price path rather than every print.
Polymarket trades CSV: the columns, file by file
The hourly trades csv has seven columns: ts_ms, ts_ex_ms, token_id, price, size, side and tx_hash. ts_ms is when our recorder received the trade and ts_ex_ms is Polymarket's own timestamp for it, both milliseconds since the Unix epoch, UTC; ts_ms minus ts_ex_ms is the feed latency of that print.
The market-day trades file - one market, one UTC day - uses the schema registry's header instead: recv_ns and venue_ns in nanoseconds, venue, token_id, seq for arrival order and qual for the quality bits, then side (0 buy, 1 sell, the aggressor), price, size, fee_rate_bps, level - how deep into the book the trade reached - and tx_hash. Both are gzip-compressed csv, and parquet carries the same columns with types.
ts_ms,ts_ex_ms,token_id,price,size,side,tx_hash
Load Polymarket trades in pandas or polars
pandas reads a csv.gz directly and decompresses it from the extension; polars does the same. In parquet, prices are decimal(5, 4) on the venue's 0 to 1 scale and sizes decimal(18, 6) in shares - decimal rather than float on purpose, so cast to float only where your model wants it and knows it rounds. Sort by the venue's clock to get the order trades happened in.
import pandas as pd
t = pd.read_csv("trades.csv.gz", dtype={"token_id": str, "price": str, "size": str})
t = t.sort_values("ts_ex_ms")
t["latency_ms"] = t["ts_ms"] - t["ts_ex_ms"]
import polars as pl
t = pl.read_parquet("trades.parquet")A free Polymarket trades file, no account
GET /v1/samples lists one market a day for the last three UTC days, in every market-day schema as parquet and csv.gz, with no key. Each entry carries a stable URL that redirects to a signed link, so curl -L downloads the real file, cut the way a subscriber gets it. Pick the trades csv out of the list with jq and look at its first lines.
url=$(curl -s https://probnode.com/v1/samples \ | jq -r 'map(select(.dataset=="trades" and .format=="csv"))[0].url') curl -sL "$url" -o trades.csv.gz zcat trades.csv.gz | head -3
Who was on each side of a trade
The websocket's trades say what printed; the fills schema says who. It is one row per OrderFilled log from our own Polygon node, with the maker and taker addresses, the order hash, price, size, amounts and fee, and reorg reversals marked. A trade joins to its fills on the transaction hash, token and size, with the log index breaking ties - tx_hash is in every trades file for exactly that.
How far back the trades go
The trades dataset starts on 2026-11-12, beside the full book, and runs forward every hour from there; there is no earlier history in it. Which hours of which market are actually held is in the coverage ledger, per token and hour, free and keyless - a quiet hour is a thin file, an hour we were not connected is a declared gap, and the ledger keeps the two apart.
The most traded series we record
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 |