Building an AI agent? Start with /llms.txt for the full site index.
Capital Flows
Daily securities-lending balances per listed stock from the official TWSE securities-lending report — lent shares and outstanding balance.
GET /v2/datasets/chip-deep-securities-lending-dailySecurities lending is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/chip-deep-securities-lending-daily.
securities-lending returns one row per stock per trading day with the securities-lending volume and outstanding balance from the official TWSE report. Each row carries its source role so a balance is traceable to the official report rather than taken on trust.
| Field | Type | Description |
|---|---|---|
symbol | string | Ticker. |
as_of_date | string | |
market | string | |
prev_lending_balance | number | |
borrowed_volume | null | |
returned_volume | null | |
lending_balance | number | Outstanding securities-lending balance (shares). |
close_price | number | |
market_value | null |
| Rows | ~3,552,131 |
| Window | 2007-01-02 – 2026-08-31 |
| Grade | Verified |
| Measured | 2026-09-01from the dataset registry |
A real response from this endpoint. Rows are returned under "envelope.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.
{
"api_version": "v2",
"endpoint": "/v2/datasets/chip-deep-securities-lending-daily",
"request_id": "req_beeece267a37",
"plan_id": "enterprise",
"dataset": "securities_lending",
"query": {
"symbol": "1216",
"as_of_date": null,
"start_date": null,
"end_date": null,
"market": null,
"limit": 50,
"legacy_aliases_used": {
"ticker": false,
"date_from": false,
"date_to": false,
"offset": false,
"sort_by": false,
"sort_order": false
}
},
"meta": {
"rows_returned": 50,
"mandatory_contract_fields_present": [
"api_version",
"data",
"data_as_of"
],
"plan": "enterprise",
"row_limit": 100000,
"is_limited": false
},
"envelope": {
"api_version": "v2",
"dataset": "securities_lending",
"dataset_version": "v2.0.0-preview",
"release_version": "v2.2026-08-03.preview",
"release_date": "2026-08-03",
"data_as_of": "2026-08-03",
"request_context": {
"ticker": "1216",
"as_of_date": "2026-08-03",
"family": "chip_deep",
"field_group_type": "canonical",
"dataset_view": "securities_lending_v1"
},
"data": [
{
"symbol": "1216",
"as_of_date": "2026-08-03",
"market": "TWSE",
"prev_lending_balance": 280505000,
"borrowed_volume": null,
"returned_volume": null,
"lending_balance": 278649000,
"close_price": 73,
"market_value": null
},
{
"symbol": "1216",
"as_of_date": "2026-07-31",
"market": "TWSE",
"prev_lending_balance": 287992000,
"borrowed_volume": null,
"returned_volume": null,
"lending_balance": 280505000,
"close_price": 73.8,
"market_value": null
}
],
"quality": {
"freshness_state": "fresh",
"freshness_as_of": "2026-08-03",
"completeness_ratio": 1,
"quality_status": "ready"
},
"lineage": {
"source_role": "canonical",
"selected_source": "securities_lending",
"fallback_chain": [],
"policy_notes": [
"<Chinese value - see the zh page>",
"contract-aligned filters: symbol/as_of_date/start_date/end_date/market",
"nullable optional fields are preserved as-is"
]
},
"error": {
"error_code": null,
"error_message": null,
"dataset": "securities_lending",
"request_id": "read-api-7c02e965e99d",
"blocking_gate": null
}
}
}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.
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. (n.d.). Securities lending [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/en/docs/api/capital-flows/securities-lending
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 as_of_date + market + ticker
Joins on as_of_date + market + ticker
Joins on as_of_date + market + ticker
Joins on as_of_date + market + ticker
Joins on as_of_date + market + ticker
curl "https://api.twmarketdata.com/v2/datasets/chip-deep-securities-lending-daily?symbol=2330&start_date=2026-06-01&end_date=2026-07-17" \
-H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
symbol | No | string | Ticker, e.g. 2330. |
start_date | No | string | Start of the query range (YYYY-MM-DD). |
end_date | No | string | End of the query range (YYYY-MM-DD). |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/chip-deep-securities-lending-daily",
params={"symbol": "2330"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["envelope"]["data"])This endpoint is GET /v2/datasets/chip-deep-securities-lending-daily. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.