Documentation
The SDKs for Go, Python, Rust and TypeScript, the API, and how gaps in the data are reported.
API key. Pick a plan on Pricing and create a key, then install the SDK for your language: the Go SDK, Python SDK, Rust SDK or TypeScript SDK.
Guides
- QuickstartStart hereLoad a day of prediction-market trades or order books with the PredBooks SDKs for Go, Python, Rust and TypeScript.
- APIThe PredBooks API: list venues and files, search markets, and get signed download links to Parquet files.
- Data qualityHow PredBooks marks known gaps and problems in its data: quality flags on every file and the free hourly coverage channel.
- Rebuild order booksReplay book_delta rows into a full Polymarket order book at any moment in Python, carry it across hours and check it against the quotes channel.
- GlossaryDefinitions of the terms in PredBooks prediction-market data: book deltas, snapshot rows, top-10 books, quotes, trades, onchain fills, ids and timestamps.
SDKs
- Go SDKThe predbooks.com/go module. Loads days of data as Arrow tables.
- Python SDKThe predbooks package. Loads days of data into pandas, Polars or Arrow.
- Rust SDKThe predbooks crate. Loads days of data as Arrow record batches.
- TypeScript SDK@predbooks/sdk for Node. Loads days of data as Arrow tables.