AI agent?先讀 /llms.txt 取得全站索引。
籌碼與資金
空方限制旗標:每筆為某股某日之空方限制狀態,含是否有空賣限制、融券與借券限額值、處置中旗標與限制註記。衍生自空賣餘額控管+注意/處置事件。非預測、非建議。
GET /v2/datasets/short-restriction-flags空方限制旗標是台灣市場資料集,來源為 TWSE,由 TW Market Data 以 GET /v2/datasets/short-restriction-flags 提供,資料日 2026-07-31。
| 欄位 | 型別 | 說明 |
|---|---|---|
ticker | string | |
market | string | |
trade_date | string | |
has_short_sale_control | boolean | |
ms_limit_value | null | |
sbl_limit_value | null | |
disposition_active | boolean | |
restriction_note | null | scope per row |
derivation_method | string | |
rule_version | string |
| 列數 | 87,946 |
| 涵蓋起訖 | 2001-01-03 – 2026-09-09 |
| 分級 | 已驗證 |
| 量測時間 | 2026-09-01取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"dataset_id": "short_restriction_flags",
"request_context": {
"scope": "per_ticker_short_sale_restriction_state",
"coverage_type": "daily_derived",
"filters": {
"ticker": null,
"market": null,
"trade_date": null,
"date_from": null,
"date_to": null,
"restricted_only": false,
"limit": 50
},
"min_trade_date": "2026-08-13",
"max_trade_date": "2026-08-20"
},
"quality": {
"row_count": 50,
"ticker_count": 23,
"restricted_count": 50,
"sensitive_fields_exposed": false
},
"lineage": {
"derivation_methods": [
"derived_ssbc_and_attention_disposal"
],
"semantics": "Whether a ticker was under a short-sale restriction on a given day, combining margin-short controls, SBL limits and disposition status. DERIVED by joining those feeds — it is not a single official flag."
},
"error": null,
"data": [
{
"ticker": "3362",
"market": "TPEx",
"trade_date": "2026-08-20",
"has_short_sale_control": false,
"ms_limit_value": null,
"sbl_limit_value": null,
"disposition_active": true,
"restriction_note": null,
"derivation_method": "derived_ssbc_and_attention_disposal",
"rule_version": "derived_v1_restriction_flags"
},
{
"ticker": "33621",
"market": "TPEx",
"trade_date": "2026-08-20",
"has_short_sale_control": false,
"ms_limit_value": null,
"sbl_limit_value": null,
"disposition_active": true,
"restriction_note": null,
"derivation_method": "derived_ssbc_and_attention_disposal",
"rule_version": "derived_v1_restriction_flags"
}
],
"data_count": 50,
"known_gaps": [
"DERIVED_by_combining_three_feeds_there_is_no_single_official_restriction_flag",
"absence_of_a_row_is_not_proof_a_ticker_was_unrestricted_it_may_simply_be_uncovered",
"restriction_note_carries_the_specific_rule_that_applied"
],
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "short_restriction_flags",
"scope": "per_ticker_short_sale_restriction_state",
"row_count": 50
}
}擷取自 2026-07-20 的線上 API。
本服務部分資料取自政府資料開放平臺(data.gov.tw),依「政府資料開放授權條款-第1版」授權利用。資料提供機關:臺灣證券交易所、證券櫃檯買賣中心、臺灣期貨交易所、臺灣集中保管結算所、國家發展委員會、中央銀行、經濟部統計處、財政部關務署。本服務之加值處理、衍生計算與呈現方式由 TWMD 負責,與各資料提供機關無涉。
TW Market Data. (2026). 空方限制旗標 (Version 2026-07-31) [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/capital-flows/short-restriction-flags
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
curl "https://api.twmarketdata.com/v2/datasets/short-restriction-flags" \
-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={},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])此端點為 GET /v2/datasets/short-restriction-flags。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。