WHAT IT ANSWERS
这张表适合回答什么
- 构建每日期权曲面
- 分析 skew 与期限结构
- 计算个股期权流动性和持仓特征
DATASET · market
market.option_eod_theta
按标的、到期日、行权价、期权类型和交易日记录 Greeks、隐含波动率、未平仓量等日终数据。
trade_dateWHAT IT ANSWERS
GRAIN & TIME
KEY FIELDS
underlying_codeexpiration_datestrike_priceoption_typetrade_dateunderlying_instrument_idRECOMMENDED JOINS
ref.calendaron market + trade_date(有 market 时)需要计算交易日偏移时联接交易日历;无 market 字段时先确定适用市场。
HOW TO QUERY SAFELY
先用 catalog 确认当前契约;可按 catalog 中列出的 filters 进一步缩小范围;单页最多 50000 行,响应有 has_more 时原样传回 next_cursor 继续分页。
MACHINE CONTRACT
underlying_instrument_id, trade_date, expiration_date, strike_price, option_type, rootunderlying_instrument_id, trade_date, expiration_date, strike_price, option_type, rootcanonical_final_activeexpiration_date→ expiration_date · stringoption_type→ option_type · stringroot→ root · stringunderlying_code→ underlying_code · 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_eod_theta/rows?limit=100&underlying_code=AAPL"from friends_data_api import FriendsDataClient, Settings
async with FriendsDataClient(Settings.from_env()) as client:
page = await client.get_dataset_rows('market', 'option_eod_theta', limit=100, filters={'underlying_code': 'AAPL'})
print(page.data)
if page.has_more:
print("next cursor:", page.next_cursor)friends-data get-dataset-rows market option_eod_theta --limit 100 --filter underlying_code=AAPL{
"arguments": {
"dataset": "option_eod_theta",
"filters": {
"underlying_code": "AAPL"
},
"limit": 100,
"namespace": "market"
},
"tool": "get_dataset_rows"
}FIELD DICTIONARY
descriptionSource 可在 JSON 中区分仓库注释、标准术语表和名称推导说明。
| # | 字段 | ClickHouse 类型 | JSON | 可空 | 角色 | 说明 |
|---|---|---|---|---|---|---|
| 1 | underlying_instrument_id | UInt64 | integer | no | filter, default_order, warehouse_primary_key, contract_unique_key | Identifier for underlying instrument.名称推导 |
| 2 | underlying_code | String | string | no | filter | Source-normalized field: underlying code.名称推导 |
| 3 | market | LowCardinality(String) | string | no | value | Canonical market or country-market code.标准术语表 |
| 4 | root | String | string | no | filter, default_order, warehouse_primary_key, contract_unique_key | Source-normalized field: root.名称推导 |
| 5 | option_symbol | String | string | no | value | Source-normalized field: option symbol.名称推导 |
| 6 | expiration_datedate | Date | string / date | no | filter, default_order, warehouse_primary_key, contract_unique_key | Calendar date for expiration date (YYYY-MM-DD).名称推导 |
| 7 | strike_price | Float64 | number | no | default_order, warehouse_primary_key, contract_unique_key | Price value for strike price.名称推导 |
| 8 | option_type | LowCardinality(String) | string | no | filter, default_order, warehouse_primary_key, contract_unique_key | Source-normalized field: option type.名称推导 |
| 9 | contract_size | UInt32 | integer | no | value | Source-normalized field: contract size.名称推导 |
| 10 | trade_datedate | Date | string / date | no | time, default_order, warehouse_primary_key, contract_unique_key | Trading-session date in the dataset's market calendar.标准术语表 |
| 11 | open | Nullable(Float64) | number | yes | value | Opening price for the represented interval.标准术语表 |
| 12 | high | Nullable(Float64) | number | yes | value | Highest price for the represented interval.标准术语表 |
| 13 | low | Nullable(Float64) | number | yes | value | Lowest price for the represented interval.标准术语表 |
| 14 | close | Nullable(Float64) | number | yes | value | Closing or last price for the represented interval.标准术语表 |
| 15 | volume | Nullable(UInt64) | integer | yes | value | Traded volume for the represented interval.标准术语表 |
| 16 | trade_count | Nullable(UInt64) | integer | yes | value | Count of trade count.名称推导 |
| 17 | bid | Nullable(Float64) | number | yes | value | Source-normalized field: bid.名称推导 |
| 18 | ask | Nullable(Float64) | number | yes | value | Source-normalized field: ask.名称推导 |
| 19 | open_interest | Nullable(UInt64) | integer | yes | value | Source-normalized field: open interest.名称推导 |
| 20 | implied_volatility | Nullable(Float64) | number | yes | value | Source-normalized field: implied volatility.名称推导 |
| 21 | delta | Nullable(Float64) | number | yes | value | Source-normalized field: delta.名称推导 |
| 22 | gamma | Nullable(Float64) | number | yes | value | Source-normalized field: gamma.名称推导 |
| 23 | theta | Nullable(Float64) | number | yes | value | Source-normalized field: theta.名称推导 |
| 24 | vega | Nullable(Float64) | number | yes | value | Source-normalized field: vega.名称推导 |
| 25 | rho | Nullable(Float64) | number | yes | value | Source-normalized field: rho.名称推导 |
| 26 | underlying_price | Nullable(Float64) | number | yes | value | Price value for underlying price.名称推导 |
| 27 | source | LowCardinality(String) | string | no | provenance | Normalized upstream source identifier.标准术语表 |
| 28 | provider | LowCardinality(String) | string | no | provenance | Upstream data provider identifier.标准术语表 |
| 29 | parser_version | LowCardinality(String) | string | no | provenance | Version of the parser or normalizer that produced the row.标准术语表 |
| 30 | ingest_run_id | String | string | no | provenance | Identifier of the ingestion run that produced the row.标准术语表 |
| 31 | version_tsUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | provenance | UTC timestamp associated with the row version.标准术语表 |
| 32 | is_deleted | UInt8 | integer | no | value | Soft-delete marker; public serving excludes current tombstones.标准术语表 |
| 33 | created_atUTC_datetime | DateTime64(3, 'UTC') | string / date-time | no | value | UTC timestamp when the warehouse row was first created.标准术语表 |
换一个字段名、类型或角色。
结构来自 Friends 只读身份可见的真实 serving relation;权限、过滤、排序、PIT 与分页来自可执行 DatasetSpec。Schema observed at 2026-10-06T18:08:52Z。