AI agent?先讀 /llms.txt 取得全站索引。
市場與價格
漲跌停價日線——每檔股票每交易日的官方漲停價、跌停價與參考價。
GET /v2/datasets/stock-price-limit-dailystock-price-limit-daily 每檔股票每交易日回傳一列,含官方漲停價、跌停價及其計算所依據的參考價。每列附來源角色,漲跌停價可回溯交易所發布,而非於客戶端重新推導。
| 欄位 | 型別 | 說明 |
|---|---|---|
symbol | string | 股票代碼。 |
date | string | 交易日。 |
reference_price | number | 計算漲跌停之參考價。 |
limit_up | number | 漲停價。 |
limit_down | number | 跌停價。 |
source_role | string | 正規來源角色(official_twse_price_limit)。 |
| 列數 | 38,742 |
| 涵蓋起訖 | 2003-06-02 至 2026-07-14 |
| 分級 | 已驗證 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{ "dataset_id": "stock_price_limit_daily", "request_context": { "scope": "tpex_price_limit_only", "coverage_type": "latest_snapshot_baseline", "filters": { "trade_date": null, "date_from": null, "date_to": null, "ticker": null, "market": null, "source_family": null, "limit": 50 }, "min_trade_date": "2026-07-09", "max_trade_date": "2026-07-14" }, "quality": { "row_count": 50, "ticker_count": 50, "sensitive_fields_exposed": false }, "lineage": { "source_providers": [ "tpex_official", "twse_official" ], "source_roles": [ "official_stock_price_limit_daily" ], "source_families": [ "TWSE_TWT49U_EX_RIGHT", "tpex_mainboard_daily_close_quotes" ] }, "error": null, "data": [ { "trade_date": "2026-07-14", "ticker": "1402", "market": "TWSE", "limit_up_price": 28.15, "limit_down_price": 23.05, "reference_price": 25.6, "source_provider": "twse_official", "source_role": "official_stock_price_limit_daily", "source_family": "TWSE_TWT49U_EX_RIGHT", "lineage": { "event_type": "ex_dividend", "endpoint_name": "twse_exchangeReport_TWT49U", "event_category": "息", "knowledge_date": "2026-07-14", "reference_basis": "開盤競價基準" }, "data_gaps": [] }, { "trade_date": "2026-07-14", "ticker": "1603", "market": "TWSE", "limit_up_price": 32.8, "limit_down_price": 26.9, "reference_price": 29.85, "source_provider": "twse_official", "source_role": "official_stock_price_limit_daily", "source_family": "TWSE_TWT49U_EX_RIGHT", "lineage": { "event_type": "ex_dividend", "endpoint_name": "twse_exchangeReport_TWT49U", "event_category": "息", "knowledge_date": "2026-07-14", "reference_basis": "開盤競價基準" }, "data_gaps": [] } ], "data_count": 50, "known_gaps": [ "tpex_only", "no_twse_price_limit_coverage", "no_historical_full_depth_claim" ], "warnings": [ "not_investment_advice" ], "envelope": { "dataset_id": "stock_price_limit_daily", "scope": "tpex_price_limit_only", "row_count": 50 }}擷取自 2026-07-20 的線上 API。
本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。
curl "https://api.twmarketdata.com/v2/datasets/stock-price-limit-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 | 回傳筆數上限。 |
第一個呼叫:
import requests resp = requests.get( "https://api.twmarketdata.com/v2/datasets/stock-price-limit-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/stock-price-limit-daily", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)此端點為 GET /v2/datasets/stock-price-limit-daily。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。