AI agent?先讀 /llms.txt 取得全站索引。
衍生與可轉債
TAIFEX 選擇權每日市場資料——上市選擇權契約的每日結算、成交量與未平倉量。
GET /v2/datasets/options-daily-taifex選擇權日線是台灣市場資料集,來源為 TAIFEX,由 TW Market Data 以 GET /v2/datasets/options-daily-taifex 提供。
options-daily-taifex 以官方 TAIFEX 資料為源,每交易日每個選擇權契約序列回傳一列,以契約、履約價與買賣權別為鍵;每列附來源角色,任一數值可回溯交易所發布,而非僅憑信任。
| 欄位 | 型別 | 說明 |
|---|---|---|
trade_date | string | |
contract_symbol | string | |
option_type | string | |
strike_price | number | 契約序列履約價。 |
expiry_month | string | |
open | null | |
high | null | |
low | null | |
close | null | |
volume | null | |
open_interest | null | 未平倉量。 |
settlement_price | number | 每日結算價。 |
| 列數 | 21,434,720 |
| 涵蓋起訖 | 2001-12-24 – 2026-09-04 |
| 分級 | 已驗證 |
| 量測時間 | 2026-09-04取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"dataset_id": "options_daily_taifex",
"request_context": {
"scope": "options_daily_taifex_latest_daily_file_only",
"coverage_type": "latest_daily_file_only",
"filters": {
"trade_date": "2026-08-05",
"date_from": null,
"date_to": null,
"contract_symbol": null,
"option_type": null,
"expiry_month": null,
"source_family": null,
"limit": 50
},
"min_trade_date": "2026-08-05",
"max_trade_date": "2026-08-05"
},
"quality": {
"row_count": 50,
"contract_count": 1,
"sensitive_fields_exposed": false
},
"lineage": {
"source_providers": [
"taifex_official"
],
"source_roles": [
"options_daily_quote_settlement_open_interest"
],
"source_families": [
"taifex_options_daily_download"
]
},
"error": null,
"data": [
{
"trade_date": "2026-08-05",
"contract_symbol": "CAO",
"option_type": "call",
"strike_price": 120,
"expiry_month": "202608",
"open": null,
"high": null,
"low": null,
"close": null,
"volume": null,
"open_interest": null,
"settlement_price": 57,
"source_provider": "taifex_official",
"source_role": "options_daily_quote_settlement_open_interest",
"source_family": "taifex_options_daily_download",
"lineage": {
"row_index": 84,
"source_hash": "taifex_opt:2026-08",
"payload_date": "20260805",
"request_date": "2026-08-05",
"endpoint_name": "optDataDown",
"source_authority": "TAIFEX optDataDown (date-range CSV)"
},
"data_gaps": [],
"not_investment_advice": true
},
{
"trade_date": "2026-08-05",
"contract_symbol": "CAO",
"option_type": "call",
"strike_price": 120,
"expiry_month": "202608W1",
"open": null,
"high": null,
"low": null,
"close": null,
"volume": null,
"open_interest": null,
"settlement_price": null,
"source_provider": "taifex_official",
"source_role": "options_daily_quote_settlement_open_interest",
"source_family": "taifex_options_daily_download",
"lineage": {
"row_index": 0,
"source_hash": "taifex_opt:2026-08",
"payload_date": "20260805",
"request_date": "2026-08-05",
"endpoint_name": "optDataDown",
"source_authority": "TAIFEX optDataDown (date-range CSV)"
},
"data_gaps": [],
"not_investment_advice": true
}
],
"data_count": 50,
"known_gaps": [
"latest_daily_file_only",
"single_trading_date_baseline",
"no_historical_options_coverage_claim"
],
"warnings": [
"not_investment_advice"
],
"not_investment_advice": true,
"envelope": {
"dataset_id": "options_daily_taifex",
"scope": "options_daily_taifex_latest_daily_file_only",
"row_count": 50
}
}擷取自 2026-07-20 的線上 API。
以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。
source_providersource_rolesource_familylineagedata_gapsnot_investment_advice本服務部分資料取自政府資料開放平臺(data.gov.tw),依「政府資料開放授權條款-第1版」授權利用。資料提供機關:臺灣證券交易所、證券櫃檯買賣中心、臺灣期貨交易所、臺灣集中保管結算所、國家發展委員會、中央銀行、經濟部統計處、財政部關務署。本服務之加值處理、衍生計算與呈現方式由 TWMD 負責,與各資料提供機關無涉。
TW Market Data. (n.d.). 選擇權日線 [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/derivatives/options-daily-taifex
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
可用 trade_date 對齊
可用 trade_date 對齊
可用 trade_date 對齊
可用 trade_date 對齊
可用 trade_date 對齊
curl "https://api.twmarketdata.com/v2/datasets/options-daily-taifex?trade_date=2026-08-05" \
-H "X-API-Key: sk_live_..."| 參數 | 必填 | 型別 | 說明 |
|---|---|---|---|
symbol | 是 | string | 股票代碼,例如 2330。 |
start_date | 否 | string (YYYY-MM-DD) | 查詢起始日期。 |
end_date | 否 | string (YYYY-MM-DD) | 查詢結束日期。 |
limit | 否 | integer | 回傳筆數上限。 |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/options-daily-taifex",
params={"trade_date": "2026-08-05"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])此端點為 GET /v2/datasets/options-daily-taifex。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。