Onchain fills

Polymarket historical onchain fill data

Polymarket onchain fills as one Parquet file per UTC day, in one channel: onchain_fills.

Backfill from September 26, 2022, through April 28, 2025 so far

What is recorded

The onchain fills PredBooks holds from Polymarket, and the dates they cover.

  • Onchain fills (CTF exchanges, V1 and V2)

    Backfilled from the first exchange deployment; caught up to the present when finished.

    September 26, 2022 → April 28, 2025

onchain_fills

One row per OrderFilled event read from the chain: maker, taker, price, size and fee. One file per UTC day.

Onchain fills on Schemas
ColumnTypeDescription
chain_idint32137 Polygon, 56 BNB Chain, 8453 Base
blockint64Block number
tx_hashstringTransaction hash
log_indexint32Position of the event in the block
makerstringAddress whose order was filled
takerstringCounterparty address
rolestringmaker (resting order) or taker (crossing order)
sidestringThe order's side: buy or sell
pricedecimal(18,8)Collateral per token
sizedecimal(24,8)Outcome tokens
amountdecimal(24,8)Collateral
feedecimal(24,8)Fee charged
Plus the 8 shared columns: venue, market_id, event_id, outcome, instrument_id, exch_ts, recv_ts, seq

Load Polymarket onchain fills

One call per channel and day, here onchain_fills for September 26, 2022.

pb := predbooks.New(predbooks.WithAPIKey("pb_..."))
table, err := pb.Load(ctx, "polymarket", "onchain_fills", "2022-09-26", nil)
from predbooks import Client

pb = Client("pb_...")  # or set PREDBOOKS_API_KEY
df = pb.load("polymarket", "onchain_fills", "2022-09-26")
use predbooks::{Client, LoadOptions};

let pb = Client::builder().api_key("pb_...").build()?;
let batches = pb.load("polymarket", "onchain_fills", "2022-09-26", LoadOptions::new())?;
import { Client } from "@predbooks/sdk";

const pb = new Client("pb_..."); // or set PREDBOOKS_API_KEY
const table = await pb.load("polymarket", "onchain_fills", "2022-09-26");

Every option of load is in the quickstart and the references for the Go SDK, Python SDK, Rust SDK and TypeScript SDK. Any other language can use the API.

Related data

Load Polymarket onchain fills

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.