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

提供 deterministic 實體搜尋能力,支援 issuer、index、theme 三類查找。

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

Overview

搜尋 API 提供 deterministic 的實體搜尋能力,可在 issuer/index/theme 三種實體之間統一查找。

這是對外公開能力,路徑為 `/v2/search`,不使用向量檢索或 LLM 排名。

  • 輸入公司名稱或代碼,快速定位 ticker。
  • 在 index/theme 維度快速找可用實體。
  • 作為 query 前置步驟,先定位 entity 再提取欄位。

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

必填參數為 `q`;`type` 可選 `issuer | index | theme | all`。若 type 不支援,會回傳 `unsupported_search_type`。

Query Parameters

欄位型別Required說明
qstringyes搜尋字串。
typestringnoissuer | index | theme | all(預設 all)。
limitintegerno回傳筆數限制(1..100)。
offsetintegerno分頁偏移(>=0)。

Response Shape

回應固定包含 `dataset=universal_search`、`query`、`meta`、`results`、`errors`。

空結果以 200 + results=[] 回傳,不以 404 表示。

{
"api_version": "v2",
"endpoint": "/v2/search",
"request_id": "req_search_5b7d9f1a",
"plan_id": "developer",
"dataset": "universal_search",
"query": {
"q": "台積電",
"type": "issuer",
"limit": 20,
"offset": 0
},
"meta": {
"rows_returned": 1,
"supported_types": [
"all",
"index",
"issuer",
"theme"
]
},
"results": [
{
"entity_type": "issuer",
"ticker": "2330",
"market": "TWSE",
"company_name": "台灣積體電路製造股份有限公司",
"english_name": "Taiwan Semiconductor Manufacturing Co., Ltd.",
"matched_on": "company_name_contains",
"provider": "twse_official",
"source_role": "canonical"
}
],
"errors": []
}

Field 說明

欄位路徑型別說明
datasetstring固定為 universal_search。
queryobject本次查詢參數回填。
meta.rows_returnedinteger回傳筆數。
results[].entity_typestring實體類型(issuer/index/theme)。
results[].tickerstring|null股票代碼(issuer 時常見)。
results[].index_codestring|null指數代碼(index 時常見)。
results[].theme_primarystring|null主題欄位(theme 時常見)。
results[].matched_onstring命中欄位/規則。
results[].source_rolestring|null來源角色。
results[].lineageobject|string|null來源追溯資訊。
errors[]array錯誤欄位(分支失敗或參數問題)。

Usage Notes / 使用建議

  • 排序策略是 deterministic 規則,不包含語意向量或模型 rerank。
  • 如果某個分支來源表為空,系統會回 200 空結果而不是 500。
  • 推薦流程:先 `/v2/search` 定位,再使用 `/v2/query` 擷取欄位。

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

  • Route:/v2/search
  • 實際可用範圍與配額以控制台方案顯示為準

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

請求與回應

Request example

curl --request GET \  --url "https://api.twmarketdata.com/v2/search?q=%E5%8F%B0%E7%A9%8D%E9%9B%BB&type=issuer&limit=20" \  --header "X-API-Key: your_api_key_here"

Status codes

成功回傳搜尋結果

JSON
{  "api_version": "v2",  "endpoint": "/v2/search",  "request_id": "req_search_5b7d9f1a",  "plan_id": "developer",  "dataset": "universal_search",  "query": {    "q": "台積電",    "type": "issuer",    "limit": 20,    "offset": 0  },  "meta": {    "rows_returned": 1,    "supported_types": [      "all",      "index",      "issuer",      "theme"    ]  },  "results": [    {      "entity_type": "issuer",      "ticker": "2330",      "market": "TWSE",      "company_name": "台灣積體電路製造股份有限公司",      "english_name": "Taiwan Semiconductor Manufacturing Co., Ltd.",      "matched_on": "company_name_contains",      "provider": "twse_official",      "source_role": "canonical"    }  ],  "errors": []}