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.

查詢與工具

查詢 API

提供 allowlist 欄位查詢能力,適合固定契約資料提取與 explainability 驗證。

This documentation page is currently available in Chinese only; English versions are coming soon.
GET/v2/query

Overview

查詢 API 提供嚴格 allowlist 的欄位查詢能力,適合在固定契約下擷取跨資料主題欄位。

回應預設附帶 explainability metadata,可直接用於來源驗證與欄位審計。

  • 以單一 issuer/index 抽取固定欄位,供策略與面板使用。
  • 批次查詢多標的並取得共享 explainability metadata。
  • 搭配 `/v2/query/fields` 先查 allowlist,再動態組裝查詢。

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

必填條件為 `entity_type`、`fields`,且必須提供 `entity_id` 或 `entity_ids[]` 其中之一。單次最多 10 個 entity。

Query Parameters

欄位型別Required說明
entity_idstringno單一實體識別(ticker 或 index code)。
entity_idsstringno逗號分隔的批次實體識別。
entity_ids[]string[]no重複 query 參數的批次實體識別。
entity_typestringyesissuer 或 index。
fieldsstringyes逗號分隔欄位清單。
fields[]string[]no重複 query 參數欄位清單。
as_of_datestringno查詢基準日(YYYY-MM-DD)。
minimal_fieldsbooleannotrue 時省略 explainability payload。

Response Shape

單筆模式回傳 `data + explainability`;批次模式回傳 `results + explainability_shared`。

dataset 固定為 `field_query`,不支援任意 SQL passthrough。

{
"api_version": "v2",
"endpoint": "/v2/query",
"request_id": "req_query_4e6a8c0d",
"plan_id": "developer",
"dataset": "field_query",
"entity_id": "2330",
"entity_type": "issuer",
"as_of_date": "2026-04-22",
"fields": [
"company_name",
"pe_ratio",
"revenue_yoy_pct"
],
"data": {
"company_name": "台灣積體電路製造股份有限公司",
"pe_ratio": 26.8,
"revenue_yoy_pct": 0.18
},
"explainability": {
"company_name": {
"source_topic": "issuer_profile",
"source_table_or_contract": "issuer_profiles",
"source_field": "company_name",
"attach_rule": "exact_entity_attach",
"formula": null,
"nullability_rule": "nullable_if_source_missing",
"freshness_basis": "latest_on_or_before(as_of_date)"
}
},
"errors": [],
"meta": {
"batch_mode": false,
"supported_entity_types": [
"index",
"issuer"
]
}
}

Field 說明

欄位路徑型別說明
datasetstring固定為 field_query。
entity_typestringissuer 或 index。
fields[]string[]實際解析後欄位清單。
dataobject單筆模式欄位值映射。
results[]array批次模式結果列。
explainabilityobject單筆模式欄位級解釋資訊。
explainability_sharedobject批次模式共享 explainability 區塊。
errors[]array欄位或請求錯誤資訊。
meta.allowlistarray目前 entity_type 可用欄位列表。

Usage Notes / 使用建議

  • Companion endpoints:`/v2/query/fields`(欄位契約)與 `/v2/query/examples`(請求範例)。
  • unsupported_field 會明確出現在 errors,不會默默忽略。
  • Explainability 為 deterministic 映射,不包含 LLM 生成敘述。

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

  • Routes:/v2/query、/v2/query/fields、/v2/query/examples
  • 實際可用範圍與配額以控制台方案顯示為準

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

請求與回應

Request example

curl --request GET \  --url "https://api.twmarketdata.com/v2/query?entity_id=2330&entity_type=issuer&fields=company_name,pe_ratio,revenue_yoy_pct&as_of_date=2026-04-22" \  --header "X-API-Key: your_api_key_here"

Status codes

成功回傳欄位查詢結果

JSON
{  "api_version": "v2",  "endpoint": "/v2/query",  "request_id": "req_query_4e6a8c0d",  "plan_id": "developer",  "dataset": "field_query",  "entity_id": "2330",  "entity_type": "issuer",  "as_of_date": "2026-04-22",  "fields": [    "company_name",    "pe_ratio",    "revenue_yoy_pct"  ],  "data": {    "company_name": "台灣積體電路製造股份有限公司",    "pe_ratio": 26.8,    "revenue_yoy_pct": 0.18  },  "explainability": {    "company_name": {      "source_topic": "issuer_profile",      "source_table_or_contract": "issuer_profiles",      "source_field": "company_name",      "attach_rule": "exact_entity_attach",      "formula": null,      "nullability_rule": "nullable_if_source_missing",      "freshness_basis": "latest_on_or_before(as_of_date)"    }  },  "errors": [],  "meta": {    "batch_mode": false,    "supported_entity_types": [      "index",      "issuer"    ]  }}