AI agent?先讀 /llms.txt 取得全站索引。
市場與價格
產業別指數日資料
產業別指數日資料
已驗證來源: TWSE·方案: starter·計費: 2 點·
GET /v2/datasets/industry-index-daily產業別指數日資料是台灣市場資料集,來源為 TWSE,由 TW Market Data 以 GET /v2/datasets/industry-index-daily 提供。
總覽
產業別指數日資料——後端 meta 未提供 grain,故此處不述。
| 欄位 | 型別 | 說明 |
|---|---|---|
date | string | |
market | string | |
industry_name | string | |
index_value | number | |
change | number | |
change_direction | string | |
change_pct | number | |
turnover | null | |
turnover_coverage_status | string | |
index_version | string |
範例回應
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{ "api_version": "v2", "dataset": "industry_index_daily", "dataset_version": "v2.0.0-preview", "release_version": "v2.2026-08-05.preview", "release_date": "2026-08-05", "data_as_of": "2026-08-05", "request_context": { "ticker": "TWSE", "as_of_date": "2026-08-05", "family": "market_technical", "field_group_type": "canonical", "dataset_view": "industry_index_daily_v1", "scope": "twse_industry_price_index_daily", "coverage_type": "daily_industry_price_index", "supported_filter_fields": [ "market", "industry_name", "date_from" ], "market_filter": "TWSE", "industry_name_filter": null, "date_range": { "date_from": "2026-08-05", "date_to": "2026-08-05" } }, "data": [ { "date": "2026-08-05", "market": "TWSE", "industry_name": "光電類", "index_value": 62.05, "change": 1.83, "change_direction": "+", "change_pct": 3.04, "turnover": null, "turnover_coverage_status": "quarantined_not_in_source", "index_version": "industry_index_daily_v1", "source_name": "TWSE MI_INDEX historical industry price index", "source_url": "https://www.twse.com.tw/exchangeReport/MI_INDEX", "lineage": { "scope": "site-facing headline industries only", "endpoint": "exchangeReport/MI_INDEX", "scope_note": "the source publishes 56 price indices; only the two the public site displays are written here", "table_title": "115年08月05日 價格指數(臺灣證券交易所)", "change_basis": "漲跌點數 stored UNSIGNED, matching the existing rows; the direction is in change_direction, read from 漲跌(+/-) after stripping its HTML wrapper", "published_name": "光電類指數", "change_pct_basis": "漲跌百分比(%) is already signed and is not re-signed" }, "not_investment_advice": true }, { "date": "2026-08-05", "market": "TWSE", "industry_name": "其他電子類", "index_value": 276.7, "change": 5.95, "change_direction": "+", "change_pct": 2.2, "turnover": null, "turnover_coverage_status": "quarantined_not_in_source", "index_version": "industry_index_daily_v1", "source_name": "TWSE MI_INDEX historical industry price index", "source_url": "https://www.twse.com.tw/exchangeReport/MI_INDEX", "lineage": { "scope": "site-facing headline industries only", "endpoint": "exchangeReport/MI_INDEX", "scope_note": "the source publishes 56 price indices; only the two the public site displays are written here", "table_title": "115年08月05日 價格指數(臺灣證券交易所)", "change_basis": "漲跌點數 stored UNSIGNED, matching the existing rows; the direction is in change_direction, read from 漲跌(+/-) after stripping its HTML wrapper", "published_name": "其他電子類指數", "change_pct_basis": "漲跌百分比(%) is already signed and is not re-signed" }, "not_investment_advice": true } ], "quality": { "freshness_state": "fresh", "freshness_as_of": "2026-08-05", "completeness_ratio": 1, "quality_status": "partial", "industry_count": 37 }, "lineage": { "source_role": "canonical", "selected_source": "twse_mi_index_industry_price_index", "fallback_chain": [], "policy_notes": [ "official/public-first canonical", "TWSE MI_INDEX (exchangeReport/MI_INDEX) price indices", "site-facing headline industries only; the source publishes 56 price indices" ], "industries": [ "光電類", "其他電子類", "其他類" ] }, "error": { "error_code": null, "error_message": null, "dataset": "industry_index_daily", "request_id": "read-api-20260805", "blocking_gate": null }, "dataset_id": "industry_index_daily", "data_count": 37, "known_gaps": [ "twse_only_scope", "no_tpex_coverage", "headline_industries_only" ], "warnings": [ "not_investment_advice", "twse_only_scope", "turnover_not_in_source" ], "not_investment_advice": true}擷取自 2026-07-20 的線上 API。
本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。
出處
以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。
source_namesource_urllineagenot_investment_advice相關資料集
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
快速開始
- 把你的金鑰放進 X-API-Key 標頭。
- 加上查詢參數(symbol、日期區間、limit)。
- 送出請求並讀取 data 陣列。
curl "https://api.twmarketdata.com/v2/datasets/industry-index-daily?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 | 回傳筆數上限。 |
Python 範例
第一個呼叫:
import requests resp = requests.get( "https://api.twmarketdata.com/v2/datasets/industry-index-daily", 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/industry-index-daily", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)OpenAPI
此端點為 GET /v2/datasets/industry-index-daily。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。
備註與限制
- 後端 registry 狀態為 partial(部分涵蓋),且未提供 grain 與欄位清單,故不列欄位表、不宣稱完整涵蓋。