Glossary
Definitions of the terms in PredBooks prediction-market data: book deltas, snapshot rows, top-10 books, quotes, trades, onchain fills, ids and timestamps.
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.
The terms used across the site, the docs and the files, A to Z. Column names are written as they appear in the files; Schemas lists every channel and column.
Aggressor side
The side of the order that crossed the spread and caused a trade. In trades and ref_prices, side is the aggressor side: buy when the incoming order bought (it took the ask), sell when it sold (it hit the bid). For a mirrored trade the side is flipped along with the price. In onchain_fills, side means something else: the side of the order that row is about.
Backfill and live recording
Live recording captures the venues' feeds as they happen. Order book history comes only from live recording, because venues do not serve past books, so it starts on December 5, 2026.
A backfill reads history after the fact, from a venue's trade archive or from the chain. Kalshi's trade history and the onchain fills of Polymarket, Predict.fun and Limitless are backfilled. Venues shows how far each backfill has got.
In trades, the source column says which one a row came from: live or history. Trades from the history have no recv_ts.
Book delta
A row of the book_delta channel: one changed price level of one instrument's book, with side (bid or ask), price and new_size. new_size is the size now resting at that price, not the change in size; 0 removes the level.
Each instrument that changes in an hour starts that hour's file with its book as snapshot rows, so replaying an hour's rows in order rebuilds the full book at any moment: see Rebuild an order book. Hyperliquid HIP-4 and Polymarket Perps have no book_delta, and Kalshi's comes from polled snapshots.
Channel
One kind of data, with its own columns: trades, book_delta, book_10, quotes, onchain_fills, markets, coverage and ref_prices. There is one set of files per venue, channel and date (and hour, for the book channels). Not every venue has every channel; Venues lists them.
Coverage channel
The free coverage channel records how well each hour was captured: one row per venue, channel and UTC hour of recording, with the messages received, the recording processes that wrote (collectors), the longest stretch without a message (max_silence_seconds), and connection drops (disconnects, disconnected_seconds). Use it to find gaps before trusting an hour; see Data quality.
Decimal types
Prices are stored as decimal(18,8) and sizes, amounts and fees as decimal(24,8): exact decimals with eight digits after the point, of up to 18 or 24 digits in all. They carry no floating-point rounding. The Python SDK turns them into float64 by default; pass decimals="exact" to keep them (see Python SDK).
event_id
The event or group a market belongs to, as the venue defines it. Several markets can share one event_id.
exch_ts
The time the venue stamped on a message, or for an onchain fill the time of its block, in UTC with microsecond precision. It is empty where there is none: Kalshi gives no exchange timestamp for books, and the snapshot rows written at the start of an hour have none. Compare recv_ts.
HIP-4
Outcome markets on Hyperliquid. PredBooks records order books (the top 20 levels Hyperliquid sends) and trades for every HIP-4 outcome, with outcome and question metadata. Because Hyperliquid sends whole capped books rather than single level changes, there is no book_delta for HIP-4, only book_10 and quotes. Its venue id is hyperliquid.
Hourly and daily files
Every file covers one UTC hour or one UTC day. book_delta, book_10 and quotes come in one file per hour, by when the messages were received (recv_ts). Every other channel comes in one file per day; trades and onchain fills by when they happened. In the SDKs, date picks the UTC day and hours the UTC hours of an hourly channel.
instrument_id
The outcome token or contract a row is about: on Polymarket, Predict.fun and Limitless an outcome token id, on Kalshi the market ticker (its YES contract). On Polymarket, Predict.fun, Limitless and Kalshi, books are kept for one instrument per market, the first outcome (Kalshi's YES); trades on the other outcome of a binary market are restated on it as mirrored trades.
Rows in the files are grouped by instrument_id and then in time order, which is what lets the SDKs' instruments option read only the parts of a file that hold one market. The markets channel maps each market to its instrument_ids.
Maker and taker
In onchain_fills, role says which part of a match a row is: maker for a resting order that was filled, taker for the order that crossed it. In every row, maker is the address whose order was filled and taker its counterparty; in the crossing order's own row the counterparty is the exchange contract, and role is taker. A match therefore appears once for each order in it.
market_id
The venue's own id for a market: the condition id on Polymarket, the ticker on Kalshi, the slug on Limitless. The markets channel lists each market's outcomes and their instrument_ids; see instrument_id and outcome.
Mirrored trade
On a binary market with two outcome tokens (Polymarket, Predict.fun, Limitless), a trade on the second outcome is restated on the first: the price becomes 1 - price, the side is flipped, and mirrored is true. All of a market's trades then sit on the same instrument as its book.
Onchain fill
A row of onchain_fills: one OrderFilled event logged by a venue's exchange contract. Each event is one order's share of a match, so a match has a row for each resting order and one for the crossing order (see Maker and taker). Rows carry the chain (chain_id 137 Polygon, 56 BNB Chain, 8453 Base), block, tx_hash and log_index, plus price (collateral per token), size (outcome tokens), amount (collateral) and fee. Fills whose token is not yet matched to a market have an empty market_id and the unmapped_tokens flag.
outcome
The outcome an instrument pays on, for example Yes. A binary market has two outcomes, each with its own instrument on most venues; Kalshi has one instrument per market, its YES contract.
Parquet
The file format of all PredBooks data: a columnar format that pandas, Polars and Arrow read directly. A file is split into row groups, and since rows are grouped by instrument, a reader that wants one market can skip the rest.
Perpetual futures
Futures with no expiry date. Polymarket Perps lists them: PredBooks records the top 50 levels of every book every 100 ms, and trades. Their prices are in USD, not probabilities. There is no book_delta for Polymarket Perps, only book_10 and quotes.
Quality flags
Every file comes with a list of flags naming what is known to be wrong with it: provisional (written before all late data could arrive), cold_start (a book hour processed without the book state from the hour before), cold_changes (level changes skipped because their book was not known yet) and unmapped_tokens (onchain fills not yet matched to a market). The SDKs' files call returns them; see Data quality.
Quote
A row of quotes: the best bid and ask (bid_px, bid_sz, ask_px, ask_sz) after a change in either, including a change in size only. Unlike book_10, quotes has every change. A side with no orders is empty. Each hour starts with snapshot rows like the other book channels.
recv_ts
The time PredBooks received a message, in UTC with microsecond precision. Book channels are filed by it, and their rows for one instrument are in recv_ts order. Snapshot rows written at the start of an hour carry the hour's start. Trades from a backfill have no recv_ts. Compare exch_ts.
Reference prices
The ref_prices channel: Binance aggregate trades for BTC, ETH, SOL, XRP, BNB and DOGE against USDT, with symbol, price (in USDT), size and aggressor side. It is there to line crypto prediction markets up with the underlying price.
seq
The venue's sequence number for a message, where the venue sends one, and empty otherwise. Polymarket, Kalshi and Hyperliquid books have none; snapshot rows written at the start of an hour have none either.
Snapshot row
A row with is_snapshot true, in book_delta, book_10 or quotes. The first time an instrument's book changes in an hour, its book just before the change is written first as snapshot rows, stamped with the start of the hour (recv_ts) and with no exch_ts or seq. A book seen for the first time is written whole as snapshot rows at the time it arrived. Either way an hour's file can be replayed on its own, without the hours before it.
An instrument whose book does not change in an hour has no rows in that hour's files. In book_delta, an empty book has no snapshot rows.
Top-10 book
A row of book_10: the best ten bid and ten ask levels (bid_px_0 to bid_px_9 best first, with sizes, and the same for asks) after a change, at most once a second. For each instrument and second, the row is the last state in that second, and it is written only when it differs from the instrument's previous row; it keeps the recv_ts of the change that produced it. Snapshot rows are always written. Levels a book does not have are empty. For every change, use book_delta or quotes.
Trade
A row of trades: one trade as the venue reports it, with trade_id, price, size, aggressor side, mirrored and source (live or history). Trades are filed by the UTC day they happened in. price is the price of the instrument, from 0 to 1 on prediction markets and in USD on Polymarket Perps.