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 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. |
date | string | Trading date. |
lending_volume | number | Shares lent on the day. |
lending_balance | number | Outstanding securities-lending balance (shares). |
source_role | string | Canonical source role (official_twse_securities_lending). |
| Rows | 3,514,626 |
| Window | 2007-01-02 – 2026-07-17 |
| Grade | Verified |
TODO — no real response has been captured for this dataset yet. It needs an entitled API key, or its required parameters are not yet known. Rather than show an example nobody has observed, this section stays empty.
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 | 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. |
A first call:
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())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/chip-deep-securities-lending-daily", params={"symbol": "2330", "start_date": "2026-06-01", "end_date": "2026-07-17"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json())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.