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

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.

籌碼與資金

法人買賣

提供三大法人的買賣超資料,適合用於資金動能分析與籌碼監控。

This documentation page is currently available in Chinese only; English versions are coming soon.
GET/v2/datasets/institutional-flow

Overview

法人買賣 API 提供三大法人買賣超資料,適合用於資金動能分析與籌碼監控。

此頁為主公開 productized endpoint,回應固定為 dataset/rows/count + meta。

  • 追蹤外資/投信/自營商資金流向。
  • 建立法人動能與反轉訊號。
  • 搭配價格與融資融券做交叉分析。

Coverage

InstrumentsStart yearUpdate timingIncludes delisted
Not yet available (coming)Not yet available (coming)Not yet available (coming)coming

Figures are measured from the DB; unlisted fields defer to docs coverage (coming) — we don't fabricate cell by cell.

Request

使用此 endpoint 時,symbol 為必要參數。

Query Parameters

欄位型別Required說明
symbolstringyes股票代碼(內部對應 ticker)。
start_datestringno查詢起始日期(YYYY-MM-DD)。
end_datestringno查詢結束日期(YYYY-MM-DD)。
limitintegerno回傳筆數(預設 100,最大 5000)。

Response Shape

回應結構固定為 dataset、rows、count,並附 meta(plan/row_limit/is_limited)。

{
"dataset": "institutional_flow",
"rows": [
{
"symbol": "2330",
"date": "2026-04-22",
"market": "TWSE",
"foreign_net_buy_sell": 1523000,
"investment_trust_net_buy_sell": -320000,
"dealer_net_buy_sell": 180000,
"total_institutional_net_buy_sell": 1383000,
"foreign_buy": 8123000,
"foreign_sell": 6600000,
"investment_trust_buy": 980000,
"investment_trust_sell": 1300000,
"dealer_buy": 650000,
"dealer_sell": 470000,
"foreign_holding_ratio": 0.741,
"institutional_participation_ratio": 0.684,
"provider": "twse_official_t86",
"source_role": "official_twse_t86",
"lineage": {
"source_table": "institutional_flow_items"
},
"updated_at": "2026-04-23T03:10:00+00:00"
}
],
"count": 1,
"meta": {
"plan": "free",
"row_limit": 50,
"is_limited": false
}
}

Field 說明

欄位路徑型別說明
rows[].symbolstring股票代碼。
rows[].datestring交易日期(YYYY-MM-DD)。
rows[].marketstring市場代碼。
rows[].foreign_net_buy_sellnumber|null外資買賣超。
rows[].investment_trust_net_buy_sellnumber|null投信買賣超。
rows[].dealer_net_buy_sellnumber|null自營商買賣超。
rows[].total_institutional_net_buy_sellnumber|null三大法人合計買賣超。
rows[].foreign_buynumber|null外資買進。
rows[].foreign_sellnumber|null外資賣出。
rows[].investment_trust_buynumber|null投信買進。
rows[].investment_trust_sellnumber|null投信賣出。
rows[].dealer_buynumber|null自營商買進。
rows[].dealer_sellnumber|null自營商賣出。
rows[].foreign_holding_rationumber|null外資持股比率。
rows[].institutional_participation_rationumber|null法人參與比率。
rows[].providerstring來源供應者。
rows[].source_rolestring來源角色。
rows[].lineageobject|string|null來源追溯資訊。
rows[].updated_atstring|null資料更新時間。
countinteger回傳資料筆數。
meta.planstring目前方案代碼。
meta.row_limitinteger方案每次請求可回傳上限。
meta.is_limitedboolean是否因方案限制而截斷資料。

Usage Notes / 使用建議

  • 本頁為主公開 route,已作為法人買賣超的正式查詢入口。
  • 目前公開契約僅驗證 TWSE-only;不宣稱 TPEx coverage 或 full-market coverage。
  • 若回應中看到 legacy market='TW',那是歷史正規化值,不應解讀為 TPEx coverage。
  • 若需融資融券補充資料,請搭配 `/v2/datasets/margin-short`。

Limitations & notes

  • Coverage is not the full market or full history; the actual range is defined by the coverage table above and the data_gaps in the response.
  • Missing data is flagged honestly — we don't fill gaps with estimated values.
  • The platform focuses on daily-frequency and fundamental data; it does not provide real-time quotes, intraday bars, or cryptocurrencies.
  • TWSE is the verified baseline; TPEx history depth and adjusted prices are currently beta / deferred, flagged per dataset.
  • Queries do not support an as_of parameter (roadmap). For point-in-time, filter on each row's knowledge_date, which is set conservatively to the statutory filing deadline. Daily prices do not carry that column.

Plan Requirement

  • Free:不可用
  • Developer:文件可見,非正式商售宣告
  • Pro:可用(TWSE-only)
  • Enterprise:可用(TWSE-only)

此 API 屬於 TW Market Data 資料集目錄。 查看資料集總覽

請求與回應

Request example

curl --request GET \  --url "https://api.twmarketdata.com/v2/datasets/institutional-flow?symbol=2330&start_date=2026-04-01&end_date=2026-04-22&limit=50" \  --header "X-API-Key: your_api_key_here"

Status codes

成功回傳法人買賣資料

JSON
{  "dataset": "institutional_flow",  "rows": [    {      "symbol": "2330",      "date": "2026-04-22",      "market": "TWSE",      "foreign_net_buy_sell": 1523000,      "investment_trust_net_buy_sell": -320000,      "dealer_net_buy_sell": 180000,      "total_institutional_net_buy_sell": 1383000,      "foreign_buy": 8123000,      "foreign_sell": 6600000,      "investment_trust_buy": 980000,      "investment_trust_sell": 1300000,      "dealer_buy": 650000,      "dealer_sell": 470000,      "foreign_holding_ratio": 0.741,      "institutional_participation_ratio": 0.684,      "provider": "twse_official_t86",      "source_role": "official_twse_t86",      "lineage": {        "source_table": "institutional_flow_items"      },      "updated_at": "2026-04-23T03:10:00+00:00"    }  ],  "count": 1,  "meta": {    "plan": "free",    "row_limit": 50,    "is_limited": false  }}