Friends Data API独立数据服务

DATASET · market

历史期权链

market.option_chain_history
价格与行情期权与波动率

保存历史报价日的完整期权链,可用于波动率曲面、期权回测和事件前后定价研究;一行由 underlying_symbol、quote_date、expiration_date、strike_price 定位,主要字段包括 underlying_instrument_id、option_symbol、option_type、bid、ask。

字段19
关键字段5
更新口径producer_schedule
时间列—
单页上限5000
分页Cursor
PIT不支持
规模view

WHAT IT ANSWERS

这张表适合回答什么

  • 查询历史或盘中价格与成交
  • 构建行情、波动率和衍生品特征

GRAIN & TIME

一行代表什么

业务粒度
每行代表“历史期权链”的一条记录;逻辑粒度由 underlying_symbol × quote_date × expiration_date × strike_price × option_type 共同确定。
时间口径
该表没有单一主时间列;请使用业务日期或版本字段,并按关键字段确定范围。
更新节奏
由对应生产任务或事件触发更新,不承诺固定日历频率;查询前先检查最新时间。

KEY FIELDS

先看这些字段

underlying_symbol
用于确定该表业务粒度或默认顺序的 underlying symbol 字段。
quote_date
quote date 对应的日历日期。
expiration_date
expiration date 对应的日历日期。
strike_price
用于确定该表业务粒度或默认顺序的 strike price 字段。
option_type
用于确定该表业务粒度或默认顺序的 option type 字段。

RECOMMENDED JOINS

怎样和其他表关联

该表主要按自身业务键使用,目前没有推荐的跨表主键联接。

HOW TO QUERY SAFELY

查询方法与已知限制

先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 5000 行,响应有 has_more 时原样传回 next_cursor 继续分页。

MACHINE CONTRACT

筛选、排序与分页

UNVERSIONED
默认排序
underlying_symbol, quote_date, expiration_date, strike_price, option_type
唯一键
underlying_symbol, quote_date, expiration_date, strike_price, option_type
读取模式
relation_default
最大时间窗
未单独限制

可用 filters

option_symbol→ option_symbol · string
option_type→ option_type · string
underlying_instrument_id→ underlying_instrument_id · integer

POINT IN TIME

可复现读取

NOT AVAILABLE

该资产没有 PIT 契约。普通 rows 端点仍按当前公开读模式返回数据;不要把它表述成历史时点快照。

COPY-READY CALLS

怎么调用

同一数据集可用 HTTP、Python SDK、CLI 或 MCP;Key 始终只通过环境变量/Bearer Header 传递。

READ ONLY
HTTP
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"

FIELD DICTIONARY

19 个返回字段

descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。

#字段ClickHouse 类型JSON可空角色说明
1underlying_instrument_idNullable(UInt64)integeryesfilterIdentifier for underlying instrument.名称推导
2underlying_symbolStringstringnodefault_order, contract_unique_keySource-normalized field: underlying symbol.名称推导
3option_symbolNullable(String)stringyesfilterSource-normalized field: option symbol.名称推导
4expiration_datedateDatestring / datenodefault_order, contract_unique_keyCalendar date for expiration date (YYYY-MM-DD).名称推导
5strike_priceFloat64numbernodefault_order, contract_unique_keyPrice value for strike price.名称推导
6option_typeStringstringnofilter, default_order, contract_unique_keySource-normalized field: option type.名称推导
7quote_datedateDatestring / datenodefault_order, contract_unique_keyCalendar date for quote date (YYYY-MM-DD).名称推导
8bidNullable(Float64)numberyesvalueSource-normalized field: bid.名称推导
9askNullable(Float64)numberyesvalueSource-normalized field: ask.名称推导
10lastNullable(Float64)numberyesvalueSource-normalized field: last.名称推导
11volumeNullable(Float64)numberyesvalueTraded volume for the represented interval.标准术语表
12open_interestNullable(Float64)numberyesvalueSource-normalized field: open interest.名称推导
13implied_volatilityNullable(Float64)numberyesvalueSource-normalized field: implied volatility.名称推导
14deltaNullable(Float64)numberyesvalueSource-normalized field: delta.名称推导
15gammaNullable(Float64)numberyesvalueSource-normalized field: gamma.名称推导
16thetaNullable(Float64)numberyesvalueSource-normalized field: theta.名称推导
17vegaNullable(Float64)numberyesvalueSource-normalized field: vega.名称推导
18rhoNullable(Float64)numberyesvalueSource-normalized field: rho.名称推导
19underlying_priceNullable(Float64)numberyesvaluePrice value for underlying price.名称推导
字典口径

结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。