Building an AI agent? Start with /llms.txt for the full site index.

Capital Flows

Short-sale balance control

Short-sale balance control

VerifiedSource: TWSE·Plan: max·Cost: 2 credits·GET /v2/datasets/short-sale-balance-control

Short-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.

FieldTypeDescription
trade_datestring
tickerstring
namestring
ms_prev_balancenumber
ms_sellnumber
ms_buynumber
ms_redeemnumber
ms_balancenumberMargin-short balance
ms_next_limitnumberNext-day margin-short limit
sbl_prev_balancenumber
sbl_sellnumber
sbl_returnnumber
sbl_adjustnumber
sbl_balancenumberSBL short balance
sbl_next_limitnumberNext-day SBL limit
notenull
marketstring

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_familylineage

Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.

Getting started

  1. Put your key in the X-API-Key header.
  2. Add query parameters (symbol, date range, limit).
  3. 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

ParameterRequiredTypeDescription
symbolYesstringTicker, e.g. 2330.
start_dateNostring (YYYY-MM-DD)Start of the query range.
end_dateNostring (YYYY-MM-DD)End of the query range.
limitNointegerMaximum 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.