AI agent?先讀 /llms.txt 取得全站索引。
籌碼與資金
借券使用率:每筆為某股某日之借券餘額對發行股數→使用率與其分位,附涵蓋註記。衍生自借券+外資持股家族。非預測、非建議。
GET /v2/datasets/lending-utilization借券使用率是台灣市場資料集,來源為 TWSE,由 TW Market Data 以 GET /v2/datasets/lending-utilization 提供,資料日 2026-07-31。
| 欄位 | 型別 | 說明 |
|---|---|---|
ticker | string | |
market | string | |
trade_date | string | |
lending_balance | number | |
shares_issued | number | NULL ~19.5% |
utilisation_pct | number | NULL where denominator absent |
utilisation_pctile | number | within-history coordinate |
utilisation_note | null | |
derivation_method | string | |
rule_version | string |
| 列數 | 3,563,933 |
| 涵蓋起訖 | 2007-01-02 – 2026-08-26 |
| 分級 | 已驗證 |
| 量測時間 | 2026-09-01取自資料集登錄表 |
此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。
{
"dataset_id": "lending_utilization",
"request_context": {
"scope": "twse_tpex_securities_lending_utilisation",
"coverage_type": "daily_derived",
"filters": {
"ticker": null,
"market": null,
"trade_date": null,
"date_from": null,
"date_to": null,
"limit": 50
},
"applied_defaults": {
"default_window_days": 30,
"reason": "no date filter given; bounded to keep the view's percent_rank window from scanning all history (15.7s unbounded vs 0.7s bounded)"
},
"min_trade_date": "2026-08-03",
"max_trade_date": "2026-08-03"
},
"quality": {
"row_count": 50,
"ticker_count": 50,
"rows_without_shares_issued": 1,
"sensitive_fields_exposed": false
},
"lineage": {
"derivation_methods": [
"derived_securities_lending_over_foreign_holding_shares_issued"
],
"rule_versions": [
"derived_v1_lending_balance_over_shares_issued"
],
"semantics": "Securities-lending balance as a share of shares issued, per ticker per trading day, with the cross-sectional percentile of that ratio. DERIVED: utilisation_pct = lending_balance / shares_issued."
},
"error": null,
"data": [
{
"ticker": "00400A",
"market": "TWSE",
"trade_date": "2026-08-03",
"lending_balance": 49158000,
"shares_issued": 2167140000,
"utilisation_pct": 2.268335,
"utilisation_pctile": 0.3326848249027237,
"utilisation_note": null,
"derivation_method": "derived_securities_lending_over_foreign_holding_shares_issued",
"rule_version": "derived_v1_lending_balance_over_shares_issued"
},
{
"ticker": "00401A",
"market": "TWSE",
"trade_date": "2026-08-03",
"lending_balance": 5283000,
"shares_issued": 230395000,
"utilisation_pct": 2.293019,
"utilisation_pctile": 0.3351167315175097,
"utilisation_note": null,
"derivation_method": "derived_securities_lending_over_foreign_holding_shares_issued",
"rule_version": "derived_v1_lending_balance_over_shares_issued"
}
],
"data_count": 50,
"known_gaps": [
"utilisation_pct_is_derived_lending_balance_over_shares_issued",
"shares_issued_is_a_point_in_time_master_value_not_restated_history",
"derivation_method_and_rule_version_pin_how_each_row_was_computed"
],
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "lending_utilization",
"scope": "twse_tpex_securities_lending_utilisation",
"row_count": 50
}
}擷取自 2026-07-20 的線上 API。
本服務部分資料取自政府資料開放平臺(data.gov.tw),依「政府資料開放授權條款-第1版」授權利用。資料提供機關:臺灣證券交易所、證券櫃檯買賣中心、臺灣期貨交易所、臺灣集中保管結算所、國家發展委員會、中央銀行、經濟部統計處、財政部關務署。本服務之加值處理、衍生計算與呈現方式由 TWMD 負責,與各資料提供機關無涉。
TW Market Data. (2026). 借券使用率 (Version 2026-07-31) [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/capital-flows/lending-utilization
版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章
可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。
curl "https://api.twmarketdata.com/v2/datasets/lending-utilization" \
-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={},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])此端點為 GET /v2/datasets/lending-utilization。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。