Building an AI agent? Start with /llms.txt for the full site index.
Capital Flows
Per-ticker daily securities-lending utilization: lending balance vs shares issued → utilisation_pct and its percentile, with a coverage note. Derived from the securities-lending + foreign-holding families. Not a forecast, not a recommendation.
GET /v2/datasets/lending-utilizationThis dataset is in build and not yet queryable via the API. The coverage and honest limitations below are the real database state; it moves off "Building" once serving lands (targeted 8/1).
| Field | Type | Description |
|---|---|---|
lending_balance | shares | |
shares_issued | shares | NULL ~19.5% |
utilisation_pct | ratio | NULL where denominator absent |
utilisation_pctile | ratio | within-history coordinate |
utilisation_note | text |
3,514,626 rows, 2007-01-02..2026-07-17. utilisation_pct denominator (shares_issued) coverage ~80.5% — where shares_issued is unavailable, utilisation_pct is NULL and utilisation_note explains. utilisation_pctile is a within-history coordinate.
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": "lending-utilization", "row_count": 3, "data": [ { "ticker": "2330", "market": "TWSE", "trade_date": "2026-07-17", "lending_balance": 263251000.0, "shares_issued": null, "utilisation_pct": null, "utilisation_pctile": null }, { "ticker": "2330", "market": "TWSE", "trade_date": "2026-07-16", "lending_balance": 263097000.0, "shares_issued": null, "utilisation_pct": null, "utilisation_pctile": null }, { "ticker": "2330", "market": "TWSE", "trade_date": "2026-07-15", "lending_balance": 262443000.0, "shares_issued": null, "utilisation_pct": null, "utilisation_pctile": null } ]}Captured from the live API on 2026-07-20.
curl "https://api.twmarketdata.com/v2/datasets/lending-utilization?symbol=2330" \ -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/lending-utilization", 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/lending-utilization", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]: print(row)This endpoint is GET /v2/datasets/lending-utilization. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.