WHAT IT ANSWERS
这张表适合回答什么
- 查询历史或盘中价格与成交
- 构建行情、波动率和衍生品特征
DATASET · market
market.option_chain_history
保存历史报价日的完整期权链,可用于波动率曲面、期权回测和事件前后定价研究;一行由 underlying_symbol、quote_date、expiration_date、strike_price 定位,主要字段包括 underlying_instrument_id、option_symbol、option_type、bid、ask。
—WHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
underlying_symbolquote_dateexpiration_datestrike_priceoption_typeRECOMMENDED JOINS
该表主要按自身业务键使用,目前没有推荐的跨表主键联接。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 5000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
underlying_symbol, quote_date, expiration_date, strike_price, option_typeunderlying_symbol, quote_date, expiration_date, strike_price, option_typerelation_defaultoption_symbol→ option_symbol · stringoption_type→ option_type · stringunderlying_instrument_id→ underlying_instrument_id · integerPOINT 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/market/option_chain_history/rows?limit=100"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('market', 'option_chain_history', limit=100)
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows market option_chain_history --limit 100{
"arguments": {
"dataset": "option_chain_history",
"filters": {},
"limit": 100,
"namespace": "market"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | underlying_instrument_id | Nullable(UInt64) | integer | yes | filter | Identifier for underlying instrument.名称推导 |
| 2 | underlying_symbol | String | string | no | default_order, contract_unique_key | Source-normalized field: underlying symbol.名称推导 |
| 3 | option_symbol | Nullable(String) | string | yes | filter | Source-normalized field: option symbol.名称推导 |
| 4 | expiration_datedate | Date | string / date | no | default_order, contract_unique_key | Calendar date for expiration date (YYYY-MM-DD).名称推导 |
| 5 | strike_price | Float64 | number | no | default_order, contract_unique_key | Price value for strike price.名称推导 |
| 6 | option_type | String | string | no | filter, default_order, contract_unique_key | Source-normalized field: option type.名称推导 |
| 7 | quote_datedate | Date | string / date | no | default_order, contract_unique_key | Calendar date for quote date (YYYY-MM-DD).名称推导 |
| 8 | bid | Nullable(Float64) | number | yes | value | Source-normalized field: bid.名称推导 |
| 9 | ask | Nullable(Float64) | number | yes | value | Source-normalized field: ask.名称推导 |
| 10 | last | Nullable(Float64) | number | yes | value | Source-normalized field: last.名称推导 |
| 11 | volume | Nullable(Float64) | number | yes | value | Traded volume for the represented interval.标准术语表 |
| 12 | open_interest | Nullable(Float64) | number | yes | value | Source-normalized field: open interest.名称推导 |
| 13 | implied_volatility | Nullable(Float64) | number | yes | value | Source-normalized field: implied volatility.名称推导 |
| 14 | delta | Nullable(Float64) | number | yes | value | Source-normalized field: delta.名称推导 |
| 15 | gamma | Nullable(Float64) | number | yes | value | Source-normalized field: gamma.名称推导 |
| 16 | theta | Nullable(Float64) | number | yes | value | Source-normalized field: theta.名称推导 |
| 17 | vega | Nullable(Float64) | number | yes | value | Source-normalized field: vega.名称推导 |
| 18 | rho | Nullable(Float64) | number | yes | value | Source-normalized field: rho.名称推导 |
| 19 | underlying_price | Nullable(Float64) | number | yes | value | Price value for underlying price.名称推导 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。