WHAT IT ANSWERS
这张表适合回答什么
- 按标的和时间检索事件或原文
- 与行情联接研究事件前后反应
DATASET · event
event.prediction_market_odds
这是公告、新闻与可交易事件中的“预测市场实时赔率”数据集;一行由 market_id、observed_at、outcome_index 定位,主要字段包括 slug、outcome、price、best_bid、best_ask。
observed_atWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
market_idobserved_atoutcome_indexRECOMMENDED JOINS
该表主要按自身业务键使用,目前没有推荐的跨表主键联接。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;必须提供 market_id;单页最多 5000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
market_id, observed_at, outcome_indexmarket_id, observed_at, outcome_indexrelation_defaultmarket_id→ market_id · string · 必填provider→ provider · 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_odds/rows?limit=100&market_id=FILTER_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_odds', limit=100, filters={'market_id': 'FILTER_VALUE'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows event prediction_market_odds --limit 100 --filter market_id=FILTER_VALUE{
"arguments": {
"dataset": "prediction_market_odds",
"filters": {
"market_id": "FILTER_VALUE"
},
"limit": 100,
"namespace": "event"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | observed_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | time, default_order, warehouse_primary_key, contract_unique_key | UTC timestamp for observed at.名称推导 |
| 2 | market_id | String | string | no | filter, required_filter, default_order, warehouse_primary_key, contract_unique_key | Identifier for market.名称推导 |
| 3 | slug | String | string | no | value | Source-normalized field: slug.名称推导 |
| 4 | outcome | String | string | no | value | Source-normalized field: outcome.名称推导 |
| 5 | outcome_index | UInt16 | integer | no | default_order, warehouse_primary_key, contract_unique_key | Source-normalized field: outcome index.名称推导 |
| 6 | price | Nullable(Float64) | number | yes | value | Source-normalized field: price.名称推导 |
| 7 | best_bid | Nullable(Float64) | number | yes | value | Source-normalized field: best bid.名称推导 |
| 8 | best_ask | Nullable(Float64) | number | yes | value | Source-normalized field: best ask.名称推导 |
| 9 | spread | Nullable(Float64) | number | yes | value | Source-normalized field: spread.名称推导 |
| 10 | last_trade_price | Nullable(Float64) | number | yes | value | Price value for last trade price.名称推导 |
| 11 | liquidity_num | Nullable(Float64) | number | yes | value | Source-normalized field: liquidity num.名称推导 |
| 12 | volume_num | Nullable(Float64) | number | yes | value | Source-normalized field: volume num.名称推导 |
| 13 | volume_24hr | Nullable(Float64) | number | yes | value | Source-normalized field: volume 24hr.名称推导 |
| 14 | category | LowCardinality(String) | string | no | value | Source-normalized field: category.名称推导 |
| 15 | end_datedate | Nullable(DateTime64(3, 'UTC')) | string / date-time | yes | value | Calendar date for end date (YYYY-MM-DD).名称推导 |
| 16 | active | UInt8 | integer | no | value | Source-normalized field: active.名称推导 |
| 17 | closed | UInt8 | integer | no | value | Source-normalized field: closed.名称推导 |
| 18 | ingested_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | provenance | UTC timestamp when the source record entered the warehouse.标准术语表 |
| 19 | source | LowCardinality(String) | string | no | filter, provenance | Normalized upstream source identifier.标准术语表 |
| 20 | provider | LowCardinality(String) | string | no | filter, provenance | Upstream data provider identifier.标准术语表 |
| 21 | ingest_run_id | String | string | no | provenance | Identifier of the ingestion run that produced the row.标准术语表 |
| 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 | version | UInt64 | integer | no | provenance | Monotonic row version used for correction-aware reads.标准术语表 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。