Building an AI agent? Start with /llms.txt for the full site index.
Capital Flows
Per-ticker daily short-sale restriction state: whether a short-sale control is active, margin-short and SBL limit values, disposition-active flag, and a restriction note. Derived from short-sale-balance-control + attention/disposition events. Not a forecast, not a recommendation.
← Short-Restriction Flags overview
GET /v2/datasets/short-restriction-flagsShort-Restriction Flags is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/short-restriction-flags, with data as of 2026-07-31.
| Field | Type | Description |
|---|---|---|
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 |
| Rows | 87,946 |
| Window | 2001-01-03 – 2026-09-09 |
| Grade | Verified |
| Measured | 2026-09-01from the dataset registry |
A real response from this endpoint. Rows are returned under "data", and provenance is carried in the shape shown below — it is not identical across datasets, so read this page's rather than assuming another's.
{
"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
}
}Captured from the live API on 2026-07-20.
Part of the data in this service is obtained from the Government Open Data Platform (data.gov.tw) and used under the Open Government Data License, version 1.0. Providing agencies: Taiwan Stock Exchange, Taipei Exchange, Taiwan Futures Exchange, Taiwan Depository & Clearing Corporation, National Development Council, Central Bank of the Republic of China (Taiwan), Department of Statistics of the Ministry of Economic Affairs, and Customs Administration of the Ministry of Finance. The value-added processing, derived calculations and presentation in this service are the responsibility of TWMD and are not associated with the providing agencies.
TW Market Data. (2026). Short-Restriction Flags (Version 2026-07-31) [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/en/docs/api/capital-flows/short-restriction-flags
The version is the dataset's own as_of, not the date this page was built. Where we have no as_of the field is left out rather than filled in. Check a signature
Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.
Joins on market + ticker + trade_date
Joins on market + ticker + trade_date
Joins on market + ticker + trade_date
Joins on market + ticker + trade_date
Joins on market + ticker + trade_date
curl "https://api.twmarketdata.com/v2/datasets/short-restriction-flags" \
-H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
symbol | Yes | string | Ticker, e.g. 2330. |
start_date | No | string (YYYY-MM-DD) | Start of the query range. |
end_date | No | string (YYYY-MM-DD) | End of the query range. |
limit | No | integer | Maximum rows to return. |
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"])This endpoint is GET /v2/datasets/short-restriction-flags. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.