Building an AI agent? Start with /llms.txt for the full site index.
Capital Flows
Short-sale balance control
Short-sale balance control
GET /v2/datasets/short-sale-balance-controlShort-sale balance control is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/short-sale-balance-control.
Overview
Short-sale balance control — grain: ticker / trade_date.
| Field | Type | Description |
|---|---|---|
trade_date | string | |
ticker | string | |
name | string | |
ms_prev_balance | number | |
ms_sell | number | |
ms_buy | number | |
ms_redeem | number | |
ms_balance | number | Margin-short balance |
ms_next_limit | number | Next-day margin-short limit |
sbl_prev_balance | number | |
sbl_sell | number | |
sbl_return | number | |
sbl_adjust | number | |
sbl_balance | number | SBL short balance |
sbl_next_limit | number | Next-day SBL limit |
note | null | |
market | string |
Example response
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_sale_balance_control", "request_context": { "scope": "twse_credit_total_control_balance_only", "coverage_type": "official_dated_daily", "filters": { "trade_date": null, "date_from": null, "date_to": null, "ticker": "5269", "market": null, "source_family": null, "limit": 50 }, "min_trade_date": "2026-07-01", "max_trade_date": "2026-08-05" }, "quality": { "row_count": 16, "ticker_count": 1, "sensitive_fields_exposed": false }, "lineage": { "source_families": [ "TWSE_TWT93U", "twse_short_sale_balance_control" ], "semantics": "<Chinese value - see the zh page>" }, "error": null, "data": [ { "trade_date": "2026-08-05", "ticker": "5269", "name": "<Chinese value - see the zh page>", "ms_prev_balance": 462000, "ms_sell": 7000, "ms_buy": 0, "ms_redeem": 3000, "ms_balance": 466000, "ms_next_limit": 18539169, "sbl_prev_balance": 4464000, "sbl_sell": 6000, "sbl_return": 34000, "sbl_adjust": 0, "sbl_balance": 4436000, "sbl_next_limit": 302079, "note": null, "market": "TWSE", "source_family": "twse_short_sale_balance_control", "lineage": { "endpoint": "https://www.twse.com.tw/exchangeReport/TWT93U", "source_provider": "twse_official", "source_role": "official_twse_twt93u", "source_family": "twse_short_sale_balance_control", "source_title": "<Chinese value - see the zh page>", "request_params": { "date": "20260805", "response": "json" }, "source_url": "https://www.twse.com.tw/exchangeReport/TWT93U?response=json&date=20260805", "parsed_by": "position" } }, { "trade_date": "2026-08-04", "ticker": "5269", "name": "<Chinese value - see the zh page>", "ms_prev_balance": 488000, "ms_sell": 3000, "ms_buy": 8000, "ms_redeem": 21000, "ms_balance": 462000, "ms_next_limit": 18539169, "sbl_prev_balance": 4489000, "sbl_sell": 6000, "sbl_return": 31000, "sbl_adjust": 0, "sbl_balance": 4464000, "sbl_next_limit": 301627, "note": null, "market": "TWSE", "source_family": "twse_short_sale_balance_control", "lineage": { "endpoint": "https://www.twse.com.tw/exchangeReport/TWT93U", "source_provider": "twse_official", "source_role": "official_twse_twt93u", "source_family": "twse_short_sale_balance_control", "source_title": "<Chinese value - see the zh page>", "request_params": { "date": "20260804", "response": "json" }, "source_url": "https://www.twse.com.tw/exchangeReport/TWT93U?response=json&date=20260804", "parsed_by": "position" } } ], "data_count": 16, "known_gaps": [ "twse_only", "recent_window_initial_load_full_history_backfill_pending", "not_investment_advice" ], "warnings": [ "not_investment_advice" ], "envelope": { "dataset_id": "short_sale_balance_control", "scope": "twse_credit_total_control_balance_only", "row_count": 16 }}Captured from the live API on 2026-07-20.
Chinese data values are shown as a marker here so this page stays in English; the /zh page shows them verbatim.
Provenance
These columns are returned alongside the data and record where the row came from. They are provenance, not the dataset's subject matter, so they are listed here rather than in the field table.
source_familylineageRelated datasets
Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.
- Foreign holding
Joins on market + ticker + trade_date
- Institutional flow
Joins on market + ticker + trade_date
- Securities-Lending Utilization
Joins on market + ticker + trade_date
- Margin & short
Joins on market + ticker + trade_date
- Short-Restriction Flags
Joins on market + ticker + trade_date
Getting started
- Put your key in the X-API-Key header.
- Add query parameters (symbol, date range, limit).
- Send the request and read the data array.
curl "https://api.twmarketdata.com/v2/datasets/short-sale-balance-control?symbol=2330" \ -H "X-API-Key: sk_live_..."Filtering
| 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. |
Python
A first call:
import requests resp = requests.get( "https://api.twmarketdata.com/v2/datasets/short-sale-balance-control", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["data"])With a date-range filter:
import requests # The full verified example — the same call with every supported filter set.resp = requests.get( "https://api.twmarketdata.com/v2/datasets/short-sale-balance-control", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)OpenAPI
This endpoint is GET /v2/datasets/short-sale-balance-control. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.