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.

time →Down ← price → Upreplayresting ordersUpDown
time →Down ← price → Upreplayresting ordersUpDown

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.

  • Backtests
  • Execution studies
  • Market making
00:0012:0024:00depthspread
00:0012:0024:00depthspread

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.

  • Spread
  • Depth
  • Price impact
10 markets priced at 30%happened: 3 of 10
10 markets at 30%happened: 3 of 10

03Calibration

Check how well markets predict

Set what markets said against what happened across resolved markets, and find where prices run high or low.

  • Calibration
  • Forecasting research

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.

  • Event studies
  • Information flow

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 → today
BinanceSpot reference prices
Live from December 5, 2026
Hyperliquid HIP-4Outcome markets on Hyperliquid
Live from December 5, 2026
KalshiRegulated exchange (US)
Trade history June 30, 2021 → February 10, 2026
LimitlessPrediction market (order book)
Onchain fills February 6, 2025 → today
PolymarketPrediction market (order book)
Onchain fills September 26, 2022 → April 28, 2025
Polymarket PerpsPerpetual futures
Live from December 5, 2026
Predict.funPrediction market (order book)
Onchain fills November 21, 2025 → July 24, 2026
The dates shown are history from before live recording.See all venues

How it works

Three steps to a table

  1. 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. 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. 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.

See the schemas
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");
tsbid_px_0bid_sz_0ask_px_0ask_sz_0
14:37:30.1180.60001880.000.6100640.00
14:37:30.4020.60001880.000.6100520.00
14:37:31.0070.60001640.000.6100520.00
14:37:32.2900.6000980.000.6100520.00
14:37:33.1040.59502512.750.6100455.75

The top ten levels of Polymarket’s books on December 5, 2026, as one table.

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.