AI agent?先讀 /llms.txt 取得全站索引。
籌碼與資金
空方限制旗標:每筆為某股某日之空方限制狀態,含是否有空賣限制、融券與借券限額值、處置中旗標與限制註記。衍生自空賣餘額控管+注意/處置事件。非預測、非建議。
GET /v2/datasets/short-restriction-flags即將開放——此資料集建置中,尚未可透過 API 查詢。下方涵蓋與誠實限制為真實資料庫狀態;serving 上線(預計 8/1)後脫離「建置中」。
| 欄位 | 型別 | 說明 |
|---|---|---|
has_short_sale_control | bool | |
ms_limit_value | ||
sbl_limit_value | ||
disposition_active | bool | |
restriction_note | text | scope per row |
42,609 列,2009-12-29 至 2026-07-31,1,646 檔。誠實缺口:官方平盤下不得放空清單未載入;has_short_sale_control 反映現有控管/處置來源;逐列 restriction_note 說明範圍。
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{ "dataset_id": "short-restriction-flags", "row_count": 3, "data": [ { "ticker": "8383", "market": "TPEx", "trade_date": "2026-07-31", "has_short_sale_control": false, "ms_limit_value": null, "sbl_limit_value": null, "disposition_active": true, "restriction_note": null }, { "ticker": "6907", "market": "TPEx", "trade_date": "2026-07-30", "has_short_sale_control": false, "ms_limit_value": null, "sbl_limit_value": null, "disposition_active": true, "restriction_note": null }, { "ticker": "6173", "market": "TPEx", "trade_date": "2026-07-30", "has_short_sale_control": false, "ms_limit_value": null, "sbl_limit_value": null, "disposition_active": true, "restriction_note": null } ]}擷取自 2026-07-20 的線上 API。
curl "https://api.twmarketdata.com/v2/datasets/short-restriction-flags?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/short-restriction-flags", 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/short-restriction-flags", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)此端點為 GET /v2/datasets/short-restriction-flags。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。