AI agent?先讀 /llms.txt 取得全站索引。
籌碼與資金
借券使用率:每筆為某股某日之借券餘額對發行股數→使用率與其分位,附涵蓋註記。衍生自借券+外資持股家族。非預測、非建議。
GET /v2/datasets/lending-utilization即將開放——此資料集建置中,尚未可透過 API 查詢。下方涵蓋與誠實限制為真實資料庫狀態;serving 上線(預計 8/1)後脫離「建置中」。
| 欄位 | 型別 | 說明 |
|---|---|---|
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 列,2007-01-02 至 2026-07-17。使用率分母(發行股數)涵蓋約 80.5%;分母缺漏處 utilisation_pct 為 NULL 並於 utilisation_note 說明;分位為歷史內座標。
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{ "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 } ]}擷取自 2026-07-20 的線上 API。
curl "https://api.twmarketdata.com/v2/datasets/lending-utilization?symbol=2330" \ -H "X-API-Key: sk_live_..."| 參數 | 必填 | 型別 | 說明 |
|---|---|---|---|
symbol | 是 | string | 股票代碼,例如 2330。 |
start_date | 否 | string (YYYY-MM-DD) | 查詢起始日期。 |
end_date | 否 | string (YYYY-MM-DD) | 查詢結束日期。 |
limit | 否 | integer | 回傳筆數上限。 |
第一個呼叫:
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"])帶日期區間篩選:
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)此端點為 GET /v2/datasets/lending-utilization。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。