Historical data for prediction markets
Order books, trades and onchain fills from seven venues, in one format. Compare venues, replay markets and test ideas on what was actually traded.
Get started with an agent
Paste one prompt into your coding agent. It reads our docs for agents, sets up the SDK in your language and loads a day of the data you ask for.
Help me use PredBooks: historical prediction-market data (order books, trades and onchain fills from Binance reference prices, Hyperliquid HIP-4, Kalshi, Limitless, Polymarket, Polymarket Perps and Predict.fun), delivered as Parquet files through SDKs for Go, Python, Rust and TypeScript and an API.
- Claude Code
- Codex
- Grok Build
- OpenCode
- and more
What you can do
From market data to an answer
The venues share one schema, so a question you ask of one market can be asked of the others.
01Backtesting
Test a strategy against the real book
Replay a market as it traded and see what your orders would have met: the prices, the sizes resting at each level, and the trades that came through.
02Liquidity
Measure liquidity before you size a trade
See how wide the spread is and how much is resting near the price, hour by hour.
03Calibration
Check how well markets predict
Set what markets said against what happened across resolved markets, and find where prices run high or low.
04News reaction
See how a market reacts to news
Line up a market's price with the trades around a moment that mattered, and see which trades moved it and how quickly.
What you get
Three kinds of data, seven venues
Order books
Every order resting in a market, Up and Down, and how it changed through the day.
Trades
Each trade with its price, its size and which side took it.
Onchain fills
The settlement behind a trade, with both wallets, on the three venues with onchain fills.
The venues, and how far back
Recorded live: December 5, 2026 → todayHow it works
Three steps to a table
- 1
Get a key
Pick a plan and create an API key. The list of markets and the recording report are free on every plan.
- 2
Pick a venue, a kind of data and a day
The venues share one schema, so the call looks the same for each.
- 3
Load it
One call in the Go, Python, Rust or TypeScript SDK returns a table: Arrow, pandas or Polars. The API covers everything else.
pb := predbooks.New(predbooks.WithAPIKey("pb_..."))
book, err := pb.Load(ctx, "polymarket", "book_10", "2026-12-05", nil)from predbooks import Client
pb = Client("pb_...")
book = pb.load("polymarket", "book_10", "2026-12-05")use predbooks::{Client, LoadOptions};
let pb = Client::builder().api_key("pb_...").build()?;
let book = pb.load("polymarket", "book_10", "2026-12-05", LoadOptions::new())?;import { Client } from "@predbooks/sdk";
const pb = new Client("pb_...");
const book = await pb.load("polymarket", "book_10", "2026-12-05");Start building with PredBooks
Pick a plan, create an API key and load your first day of data with an SDK (Go, Python, Rust or TypeScript) or the API.