TW Market Data LogoTW Market Data

Facts & statistics

Market facts

Long-run statistics for Taiwan equities, each with its sample period and as_of

Seasonality

Monthly return distributions and hit rates, with sample sizes

Institutional flow

Seasonality in the breadth of institutional net buying

Limit events

How often limit moves happen, and how concentrated they are

Delisting

Delisting counts and survival spans — the basis for avoiding survivorship bias

Rule changes

A timeline of trading-rule changes — the premise for reading historical data

Data & exploration

Dataset catalogue

Every dataset, its coverage, and how often it updates

Playground

Call the API from the browser, without a key

Market today

Today's market at a glance

Stock analysis

The entry point for looking at one instrument

Market heat map

The whole market in one picture — area is market cap, colour is revenue growth

Market calendar

Statutory disclosure deadlines — the day a figure may legally first be known

Platform capabilities

Product overview

What TWMD provides, and who it is built for

Verifiable proof

Signed checkpoints and per-row inclusion proofs

Data quality

Reconciliation, gap handling, and quality status

Methodology

How the figures are computed, and on what basis

Auditable execution

Tie a trading decision back to the data it saw

Connect your broker

Bring TWMD into an existing order and research workflow

Developers

Documentation

API reference, dataset pages, and integration guides

Quick start

Authentication and your first request

Integrate by role

Separate paths for quant research, data engineering, and app development

Connect over MCP

Point an agent straight at TWMD

MCP registry

The published MCP tool list and its signed manifest

Webhooks

Have your system told when data updates

Learn

Blog

Long-form writing on data, method, and market structure

Answers

Specific answers to specific questions, with sources

Topics

Industry chains and thematic relationships

Help centre

Account, billing, and usage questions

Glossary

Definitions for Taiwan-market and data terms

Compare & status

Why TWMD

A point-by-point comparison with FinMind and TEJ

Migrate from FinMind

Field mapping and migration steps

Migrate from FinLab

Field mapping and migration steps

Migrate from TEJ

Field mapping and migration steps

Status

Service availability and incident history

Security & trust

Trust centre

What we claim, and the limits on each claim

Security

Architecture, access control, and incident handling

Security facts

The items you can verify from outside

Security evidence

SBOM, ASVS mapping and threat model — including the three controls we do not meet.

Self-assessment

Item-by-item answers for a procurement questionnaire

Compliance & standards

Compliance mapping

Evidence primitives mapped onto FSB, IOSCO, and SR 26-2

Standards & interop

Term-by-term mapping onto published standards, and where it does not map

Provenance & C2PA

A machine-readable origin graph, fetchable without a key

Licensing

How the data may be used and redistributed

Adoption

Evaluate

Seven checks you can run yourself, without an account

Talk to sales

Enterprise plans, quotas, and contract detail

Pricing
中文Sign inSign up
TW Market Data

Taiwan market-data infrastructure, built for AI agents and quantitative workflows.

Status unknown
© 2026 TW Market Data

TW Market Data (TWMD) provides historical data and statistics, not investment advice; investment decisions and their risks are your own.

  • Privacy Policy·
  • Terms of Service·
  • Cookie Policy·
  • Acceptable Use Policy·
  • Data Sources & Licensing·
  • Legal (all documents)
中文

AI Agent

  • MCP Server
  • Skills
  • Tool manifest
  • Agent workflow examples
  • Agent benchmark
  • llms.txt
  • OpenAPI spec

Security

  • Security overview
  • Verifiable data
  • Trust Center
  • Standards & Interop
  • Regulatory mapping

Product

  • Datasets
  • Topics
  • Market facts
  • Documentation
  • Integration runbooks
  • Playground (no signup)
  • Free tier
  • Solutions

Company

  • About TWMD
  • Blog
  • Help centre
  • Pricing

Documentation

DASHBOARD

DashboardPricing

FOR AI AGENTS

MCP ServerSkillsllms.txtTool manifestOpenAPI SpecAgent workflow examples

OVERVIEW

OverviewQuick startAuthenticationSource policyData gradesData lineageMarket coverage

DATA APIS

Institutional flowSecurities lendingOwnership distributionSecurities-Lending UtilizationShort-Restriction FlagsBlock trade (daily)Foreign holdingMargin short cover dateShort-sale balance controlShareholding Concentration (TDCC tiers)Margin System StatisticsDay-trading suspensionMargin & shortTotal margin & short

GUIDES

How to get the 3 financial statementsHow to read institutional flowsHow to check market statusHow to wire a strategy / AI agent

SDKS

Release statusPython SDKJavaScript / TypeScript SDK

Building an AI agent? Start with /llms.txt for the full site index.

Capital Flows

Securities lending

Daily securities-lending balances per listed stock from the official TWSE securities-lending report — lent shares and outstanding balance.

← Securities lending overview

VerifiedSource: TWSE·Plan: starter·Cost: 2 credits·GET /v2/datasets/chip-deep-securities-lending-daily

Securities lending is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/chip-deep-securities-lending-daily.

Overview

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.

FieldTypeDescription
symbolstringTicker.
as_of_datestring
marketstring
prev_lending_balancenumber
borrowed_volumenull
returned_volumenull
lending_balancenumberOutstanding securities-lending balance (shares).
close_pricenumber
market_valuenull

Coverage

Rows~3,552,131
Window2007-01-02 – 2026-08-31
GradeVerified
Measured2026-09-01from the dataset registry

Example response

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.

Licence and attribution

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.

Cite this dataset

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

Related datasets

Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.

  • Institutional flow

    Joins on as_of_date + market + ticker

  • Margin & short

    Joins on as_of_date + market + ticker

  • GHG Carbon Disclosure (Scope 1/2/3)

    Joins on as_of_date + market + ticker

  • Market value weight

    Joins on as_of_date + market + ticker

  • Futures market (daily)

    Joins on as_of_date + market + ticker

Getting started

  1. Put your key in the X-API-Key header.
  2. Add query parameters (symbol, date range, limit).
  3. Send the request and read the envelope.data array.
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_..."

Filtering

ParameterRequiredTypeDescription
symbolNostringTicker, e.g. 2330.
start_dateNostringStart of the query range (YYYY-MM-DD).
end_dateNostringEnd of the query range (YYYY-MM-DD).

Python

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"])

OpenAPI

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.

Notes & limitations

  • The lending balance is the outstanding position, not the same as the short-sale balance in margin-short — the two are distinct mechanisms and should not be summed.

Request & Response

Request
curl "https://api.twmarketdata.com/v2/datasets/chip-deep-securities-lending-daily?symbol=2330&start_date=2026-01-01&end_date=2026-06-30" \
-H "X-API-Key: $TWMD_API_KEY"
Response
{
"api_version": "v2",
"endpoint": "/v2/datasets/chip-deep-securities-lending-daily",
"request_id": "req_beeece267a37",
"plan_id": "enterprise",
"dataset": "securities_lending",
"query": {
"symbol": "<string>",
"as_of_date": "<null>",
"start_date": "<null>",
"end_date": "<null>",
"market": "<null>",
"limit": "<number>",
"legacy_aliases_used": {
"ticker": "<boolean>",
"date_from": "<boolean>",
"date_to": "<boolean>",
"offset": "<boolean>",
"sort_by": "<boolean>",
"sort_order": "<boolean>"
}
},
"meta": {
"rows_returned": "<number>",
"mandatory_contract_fields_present": "<array>",
"plan": "<string>",
"row_limit": "<number>",
"is_limited": "<boolean>"
},
"envelope": {
"api_version": "<string>",
"dataset": "<string>",
"dataset_version": "<string>",
"release_version": "<string>",
"release_date": "<string>",
"data_as_of": "<string>",
"request_context": {
"ticker": "<string>",
"as_of_date": "<string>",
"family": "<string>",
"field_group_type": "<string>",
"dataset_view": "<string>"
},
"data": "<array>",
"quality": {
"freshness_state": "<string>",
"freshness_as_of": "<string>",
"completeness_ratio": "<number>",
"quality_status": "<string>"
},
"lineage": {
"source_role": "<string>",
"selected_source": "<string>",
"fallback_chain": "<array>",
"policy_notes": "<array>"
},
"error": {
"error_code": "<null>",
"error_message": "<null>",
"dataset": "<string>",
"request_id": "<string>",
"blocking_gate": "<null>"
}
}
}
i