AI agent?先讀 /llms.txt 取得全站索引。
市場結構與參考
交易制度沿革表:台股微結構制度變更之參考時間軸(每日漲跌幅放寬、現股當沖開放、tick 升降單位…),每筆含 rule_domain/rule_key/生效日、前後值、市場、說明與官方 source_url。非預測、非建議。
GET /v2/datasets/trading-rules-reference交易制度沿革表是台灣市場資料集,來源為 TWSE,由 TW Market Data 以 GET /v2/datasets/trading-rules-reference 提供。
| 欄位 | 型別 | 說明 |
|---|---|---|
rule_domain | string | price_limit / day_trading / tick_size … |
rule_key | string | |
effective_date | string | |
end_date | string | |
prior_value | string | |
new_value | string | |
market | string | TWSE,TPEX |
description | string | |
rule_version | string | |
notes | string | |
is_currently_in_force | string |
| 列數 | 8 |
| 涵蓋起訖 | 2003-03-01 – 2020-10-26 |
| 分級 | 參考 |
| 量測時間 | 2026-09-01取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"dataset_id": "trading_rules_reference",
"request_context": {
"scope": "tw_trading_rules_history",
"coverage_type": "curated_rule_history",
"filters": {
"rule_domain": null,
"rule_key": null,
"as_of": null,
"limit": 50
},
"min_effective_date": "2014-01-06",
"max_effective_date": "2020-10-26"
},
"quality": {
"row_count": 7,
"in_force_count": 7,
"domains": [
"continuous_trading",
"day_trading",
"odd_lot"
],
"sensitive_fields_exposed": false
},
"lineage": {
"authorities": [
"MOF",
"TWSE",
"TWSE/FSC"
],
"semantics": "Curated history of Taiwan trading-rule changes (price limits, tick sizes, session rules). Each row is an OPEN-ENDED interval: end_date NULL means still in force, so `as_of` returns the rule in effect on that date. The newest change is 2020-10-26 -- the rule set has not moved since, which is completeness rather than staleness, and why this is polled quarterly for change rather than judged against a freshness budget."
},
"error": null,
"data": [
{
"rule_domain": "odd_lot",
"rule_key": "intraday_odd_lot_trading",
"effective_date": "2020-10-26",
"end_date": null,
"prior_value": "after_hours_only",
"new_value": "intraday_enabled",
"market": "TWSE,TPEX",
"description": "開放盤中零股交易(09:10 起第一次撮合,其後每 1 分鐘集合競價)。",
"source_url": "https://twse-regulation.twse.com.tw/TW/law/DAT0201.aspx?FLCODE=FL007115",
"source_authority": "TWSE",
"source_role": "reference_curated",
"rule_version": "v1",
"notes": "盤後零股交易自 2001 沿用至今並存。source_verification: pending_owner",
"is_currently_in_force": true
},
{
"rule_domain": "continuous_trading",
"rule_key": "intraday_continuous_matching",
"effective_date": "2020-03-23",
"end_date": null,
"prior_value": "call_auction_5s",
"new_value": "continuous_matching",
"market": "TWSE,TPEX",
"description": "盤中交易由集合競價(約 5 秒撮合)改為逐筆撮合。",
"source_url": "https://twse-regulation.twse.com.tw/TW/law/DAT0201.aspx?FLCODE=FL007304",
"source_authority": "TWSE",
"source_role": "reference_curated",
"rule_version": "v1",
"notes": "同步導入市價單/多種委託方式與瞬間價格穩定措施。source_verification: pending_owner",
"is_currently_in_force": true
}
],
"data_count": 7,
"known_gaps": [
"seven_curated_rule_changes_newest_effective_2020_10_26_unchanged_since_not_stale",
"curated_reference_not_an_automated_feed_new_rules_land_via_quarterly_event_poll",
"some_rows_carry_source_verification_pending_owner_in_notes"
],
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "trading_rules_reference",
"scope": "tw_trading_rules_history",
"row_count": 7
}
}擷取自 2026-07-20 的線上 API。
本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。
以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。
source_urlsource_authoritysource_role本服務部分資料取自政府資料開放平臺(data.gov.tw),依「政府資料開放授權條款-第1版」授權利用。資料提供機關:臺灣證券交易所、證券櫃檯買賣中心、臺灣期貨交易所、臺灣集中保管結算所、國家發展委員會、中央銀行、經濟部統計處、財政部關務署。本服務之加值處理、衍生計算與呈現方式由 TWMD 負責,與各資料提供機關無涉。
TW Market Data. (2020). 交易制度沿革表 (Version 2020-10-26) [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/structure-reference/trading-rules-reference
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
curl "https://api.twmarketdata.com/v2/datasets/trading-rules-reference" \
-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/trading-rules-reference",
params={},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])此端點為 GET /v2/datasets/trading-rules-reference。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。