The dataset viewer should be available soon. Please retry later.
Polymarket Historical Data
V2 contains typed event and observation products for backtesting. Rust acquisition records original public messages continuously; publication is designed for UTC hourly releases. The release manifest reports actual product states and limitations. This build is still under validation and does not establish complete upstream coverage.
V1 configurations (market_snapshots, order_book_depth, top_holders) retain the legacy sparse, filtered collector data and its original schemas. They must not be treated as continuous event histories. V2 lives in independent paths and configurations.
from datasets import load_dataset
quotes = load_dataset("trentmkelly/polymarket_historical_data", 'v2_quotes', split='train', revision='<pinned commit>')
Prices, quantities and payouts use exact decimal types. Timestamp columns use UTC nanoseconds; source precision remains identified separately. Use collector receipt/availability times for causal strategies. API wallet trade observations are explicitly unreconciled and must not be summed as distinct executions.
v2_markets is the latest known definitions lookup. Use v2_market_metadata_versions with availability-aware joins for historical features. Current definitions may include observations made after an hour's events. Typed empty products mean no observations in this release; they do not establish that the source had no activity. Consult v2_collection_coverage and v2_data_quality. Each product summary identifies its implemented capability and source dependencies. New manifests include source_coverage counts for raw observations, HTTP errors, gaps, normalization failures and completed/empty scoped walks. A completed walk certifies its individual scope, never the full universe or an atomic snapshot. Missing summaries in older revisions mean unknown coverage, not zero failures. Reference prices use a credential-gated PolyBolt adapter; missing access is reported as not observable. Settlement-reference and chain adapters currently report adapter_not_implemented.
Immutable hourly manifests under manifests/v2/date=YYYY-MM-DD/hour=HH/ enumerate all files, exact hashes, schemas, source and receipt ranges, lineage, and recovery dependencies. A revised manifest retains previous data files and appends late observations. Pin both the HF commit and release revision for reproducibility. File indexes under indexes/v2/ map market, condition, asset and wallet IDs to relevant shards. Current lookup and source-event ranges are not receipt-hour filters.
Exact recovery journals are retained in the private GCS backup, not duplicated in the HF dataset. Parquet uses ordinary Zstandard, readable by standard Arrow, Polars, DuckDB and Hugging Face tools. Raw-message Parquet is omitted because the GCS recovery backup already preserves source events. Quotes retain the first observation per stream/asset/hour and subsequent value, validity or metadata changes; all book deltas remain. Book/quote tables omit redundant parent_record_id, batch_id, source_hash, question_id and source_time_raw. Use ingest_id for batch identity, metadata versions for question IDs, and the private GCS recovery archive for original source hashes and timestamp strings. Stable record_id, availability clocks, asset IDs and metadata-version references are retained.
The intentional legacy pause began 2026-11-13T14:01:23Z. No observations are invented for the hiatus. Historical gaps, aggregated upstream endpoints, missing queue position and unavailable credentials remain visible limitations. Source adapter and execution-engine readiness are tracked in the project specification.
The CC BY 4.0 license applies to rights the maintainer is authorized to license. This is an independent research dataset.
The pinned catalog/v2/hours/date=YYYY-MM-DD/hour=HH/latest.json pointer selects an hour's latest manifest in that commit. Some Hugging Face datasets versions reject zero-example splits. Read declared empty Parquet with PyArrow or the schema-aware PolyLake consumer helper; no placeholder observation is inserted.
- Downloads last month
- 240,576