--- license: cc-by-4.0 task_categories: - time-series-forecasting - tabular-classification language: - en tags: - forecasting - prediction-markets - polymarket - probability-calibration - crowd-belief pretty_name: Polymarket Resolved Events — Crowd-Belief & Volume Trajectories size_categories: - 10K **Date note:** markets often settle well before `end_date`, so use `closed_time` — not > `end_date` — as the true right edge of a trajectory to avoid look-ahead leakage. ### Ground truth | Field | Type | Meaning | |---|---|---| | `ground_truth_status` | str | `"resolved"` for every record here | | `resolved_label` | str | Winning outcome label (or `"yes"`/`"no"` for binary) | | `winner_market_index` | int | Index into `markets[]` of the winning option | ### Per-option markets — `markets` (list) One entry for a binary event; one per option for a multi-outcome event. Each object: `market_id`, `question`, `label`, `condition_id`, `outcomes` (`["Yes","No"]`), `outcome_prices_final`, `clob_token_ids`, `yes_token_id`, `yes_outcome_index`, `yes_resolved` (1/0/None), `closed`, `active`, `archived`, `umaResolutionStatus`, `volume`, `end_date`, `created_at`, `start_date`, `closed_time`. ### Daily crowd-belief trajectory | Field | Type | Meaning | |---|---|---| | `belief_kind` | str | `"binary"` or `"multi_neg_risk"` | | `daily_index` | list[str] | ISO UTC day midnights — the time axis all series align to | | `probability_start_date`, `probability_end_date` | str | Span of the series | | `raw_yes_history` | dict | `{label: [p_yes per day]}` — daily-avg YES price ∈ [0,1] | | `raw_no_history` | dict | `{label: [1 - p_yes per day]}` (binary only) | | `normalized_history` | dict | `{label: [p per day]}` — per-day normalized K-way distribution (multi only) | | `daily_probability_sum` | list | `Σ_k YES_k(t)` per day (multi only; the normalizer) | | `missingness` | dict | Per-option `{days_total, days_with_value, days_missing}` | > **Multi-outcome note:** per-option YES prices do **not** sum to 1 (each YES book has > one-sided liquidity). The implied distribution per day is `p_i / Σ_k p_k` — that's what > `normalized_history` already stores. > > Days inside the active lifetime with no trade tick are explicit `null` in the belief > series (the grid spans the true tradeable lifetime, not just observed ticks). ### Daily trading volume | Field | Type | Meaning | |---|---|---| | `daily_volume_by_market` | dict | `{market_id: [{date, trades, share_volume, notional}]}` | | `daily_volume` | list | Event-level daily volume (sum across markets) | | `winner_daily_volume` | list | The winning market's own daily volume series | | `total_volume_metadata` | float | Gamma's reported `market.volume` (USDC) | | `daily_volume_meta` | dict | Method used, per-market stats, truncation flags, window | | `diagnostics` | dict | Coverage ratios (`ratio_notional_to_metadata ≈ 1.0` ⇒ complete) | Per-day volume metrics: `trades` (fill count), `share_volume` (conditional tokens transacted), `notional` (USDC that changed hands). All are densified onto `daily_index` (days with no trades → `0`). Note the asymmetry: **missing belief days are `null`; missing volume days are `0`.** ## Quick start ```python import json records = [json.loads(line) for line in open("full.jsonl")] print(len(records), "events") ev = records[0] print(ev["title"], "->", ev["resolved_label"]) # Reconstruct the winner's probability trajectory days = ev["daily_index"] if ev["belief_kind"] == "binary": label = next(iter(ev["raw_yes_history"])) p_yes = ev["raw_yes_history"][label] p_winner = p_yes if ev["resolved_label"] == "yes" else [ 1 - p if p is not None else None for p in p_yes ] else: # multi_neg_risk p_winner = ev["normalized_history"][ev["resolved_label"]] for d, p in zip(days, p_winner): print(d, p) ``` With the `datasets` library: ```python from datasets import load_dataset ds = load_dataset("/", data_files="full.jsonl", split="train") ``` ## License & attribution Data derived from the public Polymarket Gamma / CLOB APIs and the Goldsky-hosted Polymarket subgraph. Please respect Polymarket's terms of service.