WHAT IT ANSWERS
这张表适合回答什么
- 按标的和时间检索事件或原文
- 与行情联接研究事件前后反应
DATASET · event
event.prediction_market_catalog
这是公告、新闻与可交易事件中的“预测市场合约目录”数据集;一行由 snapshot_date、market_id 定位,主要字段包括 observed_at、slug、question、category、tags。
observed_atWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
snapshot_datemarket_idRECOMMENDED JOINS
event.streamon event_id用 event_id 回到统一事件流和事件分类。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 5000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
snapshot_date, market_idsnapshot_date, market_idcanonical_final_activeevent_id→ event_id · stringmarket_id→ market_id · stringprovider→ provider · stringsnapshot_date→ snapshot_date · stringsource→ source · stringPOINT IN TIME
该资产没有 PIT 契约。普通 rows 端点仍按当前公开读模式返回数据;不要把它表述成历史时点快照。
COPY-READY CALLS
同一数据集可用 HTTP、Python SDK、CLI 或 MCP;Key 始终只通过环境变量/Bearer Header 传递。
curl --fail-with-body -H "Authorization: Bearer $FRIENDS_DATA_API_KEY" "https://api.alphahubs.uk/api/v1/data/datasets/event/prediction_market_catalog/rows?limit=100&provider=PROVIDER_VALUE"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('event', 'prediction_market_catalog', limit=100, filters={'provider': 'PROVIDER_VALUE'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows event prediction_market_catalog --limit 100 --filter provider=PROVIDER_VALUE{
"arguments": {
"dataset": "prediction_market_catalog",
"filters": {
"provider": "PROVIDER_VALUE"
},
"limit": 100,
"namespace": "event"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | snapshot_datedate | Date | string / date | no | filter, default_order, warehouse_primary_key, contract_unique_key | Calendar date for snapshot date (YYYY-MM-DD).名称推导 |
| 2 | observed_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | time | UTC timestamp for observed at.名称推导 |
| 3 | market_id | String | string | no | filter, default_order, warehouse_primary_key, contract_unique_key | Identifier for market.名称推导 |
| 4 | slug | String | string | no | value | Source-normalized field: slug.名称推导 |
| 5 | question | String | string | no | value | Source-normalized field: question.名称推导 |
| 6 | category | LowCardinality(String) | string | no | value | Source-normalized field: category.名称推导 |
| 7 | tags | String | string | no | value | Source-normalized field: tags.名称推导 |
| 8 | event_id | String | string | no | filter | Stable identifier of the normalized event.标准术语表 |
| 9 | end_datedate | Nullable(DateTime64(3, 'UTC')) | string / date-time | yes | value | Calendar date for end date (YYYY-MM-DD).名称推导 |
| 10 | active | UInt8 | integer | no | value | Source-normalized field: active.名称推导 |
| 11 | closed | UInt8 | integer | no | value | Source-normalized field: closed.名称推导 |
| 12 | liquidity_num | Nullable(Float64) | number | yes | value | Source-normalized field: liquidity num.名称推导 |
| 13 | volume_num | Nullable(Float64) | number | yes | value | Source-normalized field: volume num.名称推导 |
| 14 | volume_24hr | Nullable(Float64) | number | yes | value | Source-normalized field: volume 24hr.名称推导 |
| 15 | outcomes | String | string | no | value | Source-normalized field: outcomes.名称推导 |
| 16 | outcome_prices | String | string | no | value | Source-normalized field: outcome prices.名称推导 |
| 17 | ingested_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | provenance | UTC timestamp when the source record entered the warehouse.标准术语表 |
| 18 | source | LowCardinality(String) | string | no | filter, provenance | Normalized upstream source identifier.标准术语表 |
| 19 | provider | LowCardinality(String) | string | no | filter, provenance | Upstream data provider identifier.标准术语表 |
| 20 | ingest_run_id | String | string | no | provenance | Identifier of the ingestion run that produced the row.标准术语表 |
| 21 | version | UInt64 | integer | no | provenance | Monotonic row version used for correction-aware reads.标准术语表 |
| 22 | source_url | String | string | no | provenance | URL of the upstream evidence or record when distributable.标准术语表 |
| 23 | source_record_id | String | string | no | provenance | Provider-side identifier for the source record.标准术语表 |
| 24 | raw_payload_hash | String | string | no | provenance | Opaque fingerprint of the normalized source payload for provenance checks.标准术语表 |
| 25 | parser_version | LowCardinality(String) | string | no | provenance | Version of the parser or normalizer that produced the row.标准术语表 |
| 26 | quality_status | LowCardinality(String) | string | no | provenance | Machine-readable data-quality classification.标准术语表 |
| 27 | license_scope | LowCardinality(String) | string | no | provenance | License or redistribution scope attached to the row.标准术语表 |
| 28 | visibility_tier | LowCardinality(String) | string | no | provenance | Serving visibility tier attached to the row.标准术语表 |
| 29 | condition_id | Nullable(String) | string | yes | value | Identifier for condition.名称推导 |
| 30 | clob_token_ids | Nullable(String) | string | yes | value | Source-normalized field: clob token ids.名称推导 |
| 31 | description | Nullable(String) | string | yes | value | Human-readable description supplied or normalized from the source.标准术语表 |
| 32 | resolution_source | Nullable(String) | string | yes | value | Source-normalized field: resolution source.名称推导 |
| 33 | uma_resolution_status | Nullable(String) | string | yes | value | Source-normalized field: uma resolution status.名称推导 |
| 34 | uma_resolution_statuses | Nullable(String) | string | yes | value | Source-normalized field: uma resolution statuses.名称推导 |
| 35 | native_observation_json | Nullable(String) | string | yes | value | Source-normalized field: native observation json.名称推导 |
| 36 | native_winner_fields_json | Nullable(String) | string | yes | value | Source-normalized field: native winner fields json.名称推导 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。