AI agent?先讀 /llms.txt 取得全站索引。
衍生與可轉債
TAIFEX 選擇權每日市場資料——上市選擇權契約的每日結算、成交量與未平倉量。
GET /v2/datasets/options-daily-taifexoptions-daily-taifex 以官方 TAIFEX 資料為源,每交易日每個選擇權契約序列回傳一列,以契約、履約價與買賣權別為鍵;每列附來源角色,任一數值可回溯交易所發布,而非僅憑信任。
| 欄位 | 型別 | 說明 |
|---|---|---|
contract | string | 選擇權契約代碼(如 TXO)。 |
date | string | 交易日。 |
strike_price | number | 契約序列履約價。 |
call_put | string | 買賣權別(買權/賣權)。 |
settlement_price | number | 每日結算價。 |
open_interest | number | 未平倉量。 |
source_role | string | official_taifex。 |
| 列數 | 20,813,351 |
| 涵蓋起訖 | 2001-12-24 至 2026-06-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": null, "date_from": null, "date_to": null, "contract_symbol": null, "option_type": null, "expiry_month": null, "source_family": null, "limit": 50 }, "min_trade_date": "2026-06-04", "max_trade_date": "2026-06-04" }, "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": [ "optDataDown" ] }, "error": null, "data": [ { "trade_date": "2026-06-04", "contract_symbol": "CAO", "option_type": "call", "strike_price": 60, "expiry_month": "202606", "open": null, "high": null, "low": null, "close": null, "volume": 0, "open_interest": 0, "settlement_price": 51, "source_provider": "taifex_official", "source_role": "options_daily_quote_settlement_open_interest", "source_family": "optDataDown", "lineage": { "commodity_id": "CAO ", "queryEndDate": "2026/06/04", "queryStartDate": "2026/06/04", "trading_session": "一般" }, "data_gaps": [], "not_investment_advice": true }, { "trade_date": "2026-06-04", "contract_symbol": "CAO", "option_type": "call", "strike_price": 65, "expiry_month": "202606", "open": null, "high": null, "low": null, "close": null, "volume": 0, "open_interest": 0, "settlement_price": 46, "source_provider": "taifex_official", "source_role": "options_daily_quote_settlement_open_interest", "source_family": "optDataDown", "lineage": { "commodity_id": "CAO ", "queryEndDate": "2026/06/04", "queryStartDate": "2026/06/04", "trading_session": "一般" }, "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。
本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。
curl "https://api.twmarketdata.com/v2/datasets/options-daily-taifex?symbol=2330" \ -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={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["data"])帶日期區間篩選:
import requests # The full verified example — the same call with every supported filter set.resp = requests.get( "https://api.twmarketdata.com/v2/datasets/options-daily-taifex", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)此端點為 GET /v2/datasets/options-daily-taifex。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。