The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
league_keys: list<item: string>
child 0, item: string
market_type_allowlist: list<item: string>
child 0, item: string
run_id: string
seed_policy: string
selected_market_count: int64
selected_markets: list<item: struct<accepting_orders: bool, event_id: string, event_slug: string, event_title: string, (... 208 chars omitted)
child 0, item: struct<accepting_orders: bool, event_id: string, event_slug: string, event_title: string, league_key (... 196 chars omitted)
child 0, accepting_orders: bool
child 1, event_id: string
child 2, event_slug: string
child 3, event_title: string
child 4, league_key: string
child 5, liquidity: double
child 6, live: bool
child 7, market_id: string
child 8, question: string
child 9, sports_market_type: string
child 10, start_at: timestamp[s]
child 11, token_ids: list<item: string>
child 0, item: string
child 12, volume: double
child 13, volume_24h: double
selected_token_count: int64
token_budget: int64
runs: list<item: struct<capture_plan: string, capture_run_id: string, data_verification: string, manifest: (... 59 chars omitted)
child 0, item: struct<capture_plan: string, capture_run_id: string, data_verification: string, manifest: string, me (... 47 chars omitted)
child 0, capture_plan: string
child 1, capture_run_id: string
child 2, data_verification: string
child 3, manifest: string
child 4, metrics: string
child 5, status: string
child 6, summary: string
to
{'runs': List({'capture_plan': Value('string'), 'capture_run_id': Value('string'), 'data_verification': Value('string'), 'manifest': Value('string'), 'metrics': Value('string'), 'status': Value('string'), 'summary': Value('string')})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
return get_rows(
^^^^^^^^^
File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
for key, pa_table in self._iter_arrow():
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
league_keys: list<item: string>
child 0, item: string
market_type_allowlist: list<item: string>
child 0, item: string
run_id: string
seed_policy: string
selected_market_count: int64
selected_markets: list<item: struct<accepting_orders: bool, event_id: string, event_slug: string, event_title: string, (... 208 chars omitted)
child 0, item: struct<accepting_orders: bool, event_id: string, event_slug: string, event_title: string, league_key (... 196 chars omitted)
child 0, accepting_orders: bool
child 1, event_id: string
child 2, event_slug: string
child 3, event_title: string
child 4, league_key: string
child 5, liquidity: double
child 6, live: bool
child 7, market_id: string
child 8, question: string
child 9, sports_market_type: string
child 10, start_at: timestamp[s]
child 11, token_ids: list<item: string>
child 0, item: string
child 12, volume: double
child 13, volume_24h: double
selected_token_count: int64
token_budget: int64
runs: list<item: struct<capture_plan: string, capture_run_id: string, data_verification: string, manifest: (... 59 chars omitted)
child 0, item: struct<capture_plan: string, capture_run_id: string, data_verification: string, manifest: string, me (... 47 chars omitted)
child 0, capture_plan: string
child 1, capture_run_id: string
child 2, data_verification: string
child 3, manifest: string
child 4, metrics: string
child 5, status: string
child 6, summary: string
to
{'runs': List({'capture_plan': Value('string'), 'capture_run_id': Value('string'), 'data_verification': Value('string'), 'manifest': Value('string'), 'metrics': Value('string'), 'status': Value('string'), 'summary': Value('string')})}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
PMQ Tier1 NBA L2 Moneyline Capture
Public, periodically refreshed copy of the PMQ Tier1 Polymarket NBA moneyline market WebSocket capture. The data is designed for reproducible inspection of real order-book tape and for future development that needs to understand the exact raw-to-normalized layout without reverse engineering the pipeline.
The canonical source remains the internal PC data lake under
C:\Users\sshuser\pmq\data. This Hugging Face repository is a public copy
of selected non-secret Bronze/Silver evidence. It must not be treated as the
mutable source of truth.
Repository Layout
.
|-- README.md
|-- dataset_manifest.json
|-- capture_runs.json
|-- capture_runs/
| `-- <capture_run_id>/
| |-- manifest.json
| |-- status.json
| |-- metrics.json
| |-- capture_plan.json
| |-- data_verification.json
| `-- summary.md
`-- data/
|-- bronze_market_ws/
| `-- capture_run_id=<capture_run_id>/bronze_market_ws.parquet
|-- silver_orderbook_events/
| `-- capture_run_id=<capture_run_id>/silver_orderbook_events.parquet
`-- silver_l2_orderbook_levels/
`-- capture_run_id=<capture_run_id>/silver_l2_orderbook_levels.parquet
Every exported Parquet file is filtered by capture_run_id. Do not interpret a
shared date partition as evidence for one run. Always use the explicit
capture_run_id=* path or row column when auditing coverage.
Capture Unit
capture_run_id is the atomic collection window. The internal collector runs in
rotating windows so the static WebSocket seed can be refreshed. A single
capture_run_id should be read as one continuous capture attempt with one
capture plan, one run manifest, and one set of normalized rows.
The most important metadata files are:
capture_runs/<capture_run_id>/capture_plan.json: selected NBA moneyline markets, outcomes, token IDs, scheduling, and market-status context used to seed the stream.capture_runs/<capture_run_id>/data_verification.json: run-specific Bronze and Silver quality checks.dataset_manifest.json: publication-level index with exported row counts, time ranges, file counts, and the capture runs included in the current public copy.
Core Identifiers
market_id: internal market identifier. In PMQ this is the PolymarketconditionId.condition_id: same identity asmarket_idwhere present; kept for compatibility with Polymarket naming.token_id: Polymarket CLOB token/asset ID for one outcome side.outcome: human-readable outcome/team label when known.event_id: Polymarket/Gamma event identifier when available.capture_run_id: run/window that produced the row. This is required for clean joins and run-specific audits.
Typical join keys:
- Bronze to Silver audit:
capture_run_id + raw_content_hash/content_hash - Token-level top-of-book to L2:
capture_run_id + market_id + token_id - Same raw book frame in L2:
capture_run_id + token_id + raw_content_hash - Same normalized snapshot time:
market_id + token_id + snapshot_ts
Timestamp Semantics
ingested_at: collector write/ingestion time.event_timestamp: raw event timestamp from the WebSocket payload when present.source_event_ts: normalized source timestamp from the exchange/book payload.snapshot_ts: normalized book observation time used by L2 rows.scheduled_start_ts: scheduled game start/kickoff for the market.seconds_to_start:scheduled_start_ts - snapshot_tsin seconds. Positive values are pre-game. Negative values are after scheduled start and should be treated as in-play/out-of-domain for pre-game-only models.partition_date: physical storage partition date, not a modeling feature by itself.
Bronze timestamp columns may be strings because Bronze preserves raw ingestion shape. Silver timestamp columns are normalized timestamp types where possible.
Tables
bronze_market_ws
Path:
data/bronze_market_ws/capture_run_id=<capture_run_id>/bronze_market_ws.parquet
Granularity: one row per raw market WebSocket message/frame captured by the collector.
Purpose: immutable source-of-truth audit trail. Use this table when validating message shape, replaying normalization decisions, or checking whether the Silver rows came from actual WebSocket frames.
Important columns:
capture_run_id: source run/window.ingested_at: time the collector wrote the raw message.message_type: raw WebSocket event type, for examplebookorprice_change.event_timestamp: timestamp extracted from the raw payload when available.content_hash: hash of the raw payload content.payload_json: raw payload as JSON text. Numeric blanks or source quirks are intentionally preserved here.
silver_orderbook_events
Path:
data/silver_orderbook_events/capture_run_id=<capture_run_id>/silver_orderbook_events.parquet
Granularity: lightweight token-level top-of-book observation rows derived from Market WebSocket book-like messages.
Purpose: fast quote/tape inspection where full book depth is not needed. This is the table to use for quick best-bid/best-ask coverage checks, spread checks, and simple executable quote availability.
Common columns:
market_id,token_id,capture_run_idevent_type,event_timestamp,ingested_atbest_bid,best_askbest_bid_size,best_ask_sizelast_trade_pricespreadpayload_json
Rows are append-only observations. They are not globally deduplicated latest state. For live-style research, select rows by bounded time windows and use as-of logic.
silver_l2_orderbook_levels
Path:
data/silver_l2_orderbook_levels/capture_run_id=<capture_run_id>/silver_l2_orderbook_levels.parquet
Granularity: one row per visible L2 order-book level, per side, per token, per
snapshot/update. A single raw book frame normally expands into many
silver_l2_orderbook_levels rows.
Purpose: dense microstructure tape: depth, cumulative liquidity, price ladder, spread reconstruction, and quote-quality analysis.
Important columns:
market_id,condition_id,event_id,league_keytoken_id,outcome,capture_run_idsnapshot_ts,source_event_ts,ingested_atside:bidorask.price,size,notionallevel_index: zero-based rank on that side.0is best bid or best ask.cumulative_size,cumulative_notional: cumulative depth across that side from best to worse levels.best_bid,best_ask,last_trade_price,tick_sizebook_hash,raw_content_hashis_snapshot,is_delta_appliedcapture_action: e.g. snapshot-level or replayable update action.market_status,scheduled_start_ts,seconds_to_start
Interpretation details:
booksnapshots are expanded by side and sorted from best to worse price.price_changerows can represent replayable deltas.size = 0can mean a level deletion and should not be dropped blindly.is_delta_applied = falsemeans the row is an observed update/snapshot row, not a full reconstructed book after applying all prior deltas.- This table intentionally has no future labels, winner fields, model probabilities, or PnL columns.
Suggested Reading Pattern
Download only the files you need. Example:
from huggingface_hub import snapshot_download
import duckdb
root = snapshot_download(
repo_id="Juan4561/pmq-tier1-l2-nba-moneyline",
repo_type="dataset",
allow_patterns=[
"dataset_manifest.json",
"capture_runs.json",
"data/silver_l2_orderbook_levels/**/*.parquet",
],
)
con = duckdb.connect()
l2 = con.execute(
'''
select
capture_run_id,
market_id,
token_id,
outcome,
snapshot_ts,
seconds_to_start,
side,
level_index,
price,
size,
cumulative_size,
best_bid,
best_ask
from read_parquet(?)
where side in ('bid', 'ask')
and level_index <= 4
and seconds_to_start > 0
order by snapshot_ts
limit 100
''',
[root + "/data/silver_l2_orderbook_levels/**/*.parquet"],
).fetchdf()
Data Quality Expectations
The publisher is intentionally conservative:
- Rows are exported only from local Tier1 Bronze/Silver Parquet and filtered by
capture_run_id. - Run metadata is copied with the Parquet rows so the selection and verification context travels with the data.
- Raw logs, environment variables, wallet credentials, and API secrets are not published.
- The public copy is append/refresh style. It may replace exported Parquet files
for the same
capture_run_idas a live capture window grows, but it does not rewrite the internal canonical raw data.
Research Use Notes
- For PMQ internal modeling, this Tier1 tape is final-test / validation evidence, not external training data. Do not tune local thresholds on this public copy and then claim clean Tier1 performance.
- For pre-game models, filter
seconds_to_start > 0and keep time-based splits. - Do not randomly split repeated rows from the same
market_idor event. - If you build features from L2 rows, preserve
market_id + token_id + snapshot_tsordecision_tsgranularity. Collapsing only bymarket_idmixes timestamps and invalidates live-style simulations. - Treat after-start rows (
seconds_to_start < 0) as in-play data. They require a separately validated in-play model contract.
Target Repo
Target repo: Juan4561/pmq-tier1-l2-nba-moneyline.
- Downloads last month
- 324