Orderbook data
for up/down Polymarket.
Tick-by-tick order book snapshots & updates, trades for Polymarket. Comprehensive simple API.
import pandas as pdimport requestsslug = "btc-updown-5m-1778803200"data_type = "poly_l2" # or "poly_snapshot"url = f"https://api.pmdata.dev/get-download-url/{data_type}/{slug}"resp = requests.get(url, headers={"api_key": "<YOUR_API_KEY>"})download_url = resp.json()["download_url"]df = pd.read_parquet(download_url)print(df.head())
Tick-by-tick market data replay
Reconstruct state of the limit order book at any given past moment in time across all supported Polymarket up/down markets.
Parquet access
Each market tick dataset is contained in one Parquet file and can be downloaded directly over HTTP.
Tight integration with hftbacktest
Backtest Polymarket strategies with a mature, high-performance high-frequency backtesting framework.
Focus on strategy research, leave data infrastructure to us.
Save on server hosting, data storage, and maintenance for an in-house Polymarket data pipeline.
Comprehensive tick-level datasets
Download historical tick-level order book, price change, and last trade price data for Polymarket up/down markets.
| market_slug | timestamp | ask_prices | ask_sizes | bid_prices | bid_sizes |
|---|---|---|---|---|---|
| btc-updown-5m-1778803200 | 2026-05-14 23:55:04.850 | [0.53, 0.54, ... 0.99] | [254.1, 676.46, ... 15815.58] | [0.52, 0.51, ... 0.01] | [47.0, 40.0, ... 15810.89] |
| btc-updown-5m-1778803200 | 2026-05-14 23:55:06.469 | [0.53, 0.54, ... 0.99] | [244.98, 676.46, ... 15815.58] | [0.52, 0.51, ... 0.01] | [47.0, 40.0, ... 15810.89] |
| btc-updown-5m-1778803200 | 2026-05-14 23:55:06.505 | [0.53, 0.54, ... 0.99] | [239.02, 676.46, ... 15815.58] | [0.52, 0.51, ... 0.01] | [47.0, 40.0, ... 15810.89] |
Fast Polymarket backtests with pm-hftbacktest
Our Polymarket fork of hftbacktest runs real order book replay at research speed. An XRP 5m sweep from 2026-03-12 to 2026-03-20 finished in 12.5s on a MacBook Pro M3.
pm-hftbacktest on PyPI
Pricing
Coverage includes all up/down markets.
Free
Explore historical market data with delayed access.
- Snapshot data available after 30 days
- Tick-level data available after 30 days
- All up/down markets included
- Good for research prototypes and dataset exploration
Basic
Access recent and historical snapshot data for recurring analysis.
- Snapshot data available from the latest archive
- All up/down markets included
- All Free tier features included
- Designed for low-frequency strategies and statistical analysis
Pro
Tick-level data for precise replay and high-frequency strategy research.
- Tick-by-tick data
- All up/down markets included
- Full-fidelity market replay
- Designed for high-frequency strategies and detailed backtesting