TW Market Data LogoTW Market Data

統計與事實

事實總覽

台股的長期統計基準,每一個數字都附樣本區間與 as_of

季節性

逐月報酬分布與勝率,含樣本數

法人動向

三大法人買賣超廣度的季節性分布

漲跌停事件

漲跌停的發生頻率與集中度

下市與存續

下市家數與存續期間,回測避開倖存者偏誤的基礎

規則沿革

交易制度變更的時間軸,解讀歷史資料時的前提

資料與探索

資料集總覽

全部資料集、涵蓋範圍與更新頻率

Playground

不用金鑰,直接在瀏覽器裡打一次 API

市場快照

當日市場概況與重點數字

個股分析

單一標的的資料檢視入口

熱力圖

全市場一張圖:面積是市值,顏色是營收年增率

台股日程

法定揭露截止日:一筆資料哪一天依法才能被知道

產品能力

產品概覽

TWMD 提供什麼,以及它為誰而做

可驗證證明

簽章 checkpoint 與逐列 inclusion proof

資料品質

對帳、缺漏處理與品質狀態

方法學

數字怎麼算出來的,以及口徑

可稽核交割

把交易決策連回它當時看到的資料

券商串接

把 TWMD 接進既有下單與研究流程

開發者

文件

API 參考、資料集頁與整合指南

快速開始

認證與你的第一個 request

依角色整合

量化研究、資料工程與應用開發各自的路徑

MCP 連線

讓 agent 直接連上 TWMD

MCP registry

已發布的 MCP tool 清單與簽章 manifest

Webhooks

資料更新時主動通知你的系統

學習

部落格

資料、方法與市場結構的長文

問答

具體問題的具體答案,附資料出處

主題

產業鏈與主題的關聯檢視

說明中心

帳號、計費與使用上的常見問題

名詞表

台股與資料領域的名詞定義

比較與狀態

為何選 TWMD

與 FinMind、TEJ 的逐項比較

從 FinMind 搬遷

欄位對映與搬遷步驟

從 FinLab 搬遷

欄位對映與搬遷步驟

從 TEJ 搬遷

欄位對映與搬遷步驟

系統狀態

服務可用性與事件紀錄

安全與信任

信任中心

我們宣稱什麼、以及每個宣稱的界線

安全中心

架構、存取控制與事件處理

安全事實

可以從外部自行查證的項目

安全證據

SBOM、ASVS 對照與威脅模型,含未達成的三條。

自我評估

採購問卷用的逐項回覆

合規與標準

合規對應

證據原語對應到 FSB、IOSCO 與 SR 26-2

資料標準

逐條對應到已發布標準,以及對不上的地方

資料溯源與 C2PA

機器可讀的來源圖,免金鑰取得

授權條款

資料的使用與再散布範圍

導入

方案評估

不用帳號就能自己跑的七項檢查

聯絡銷售

企業方案、額度與合約細節

方案價格
EN登入註冊
TW Market Data

台股資料基礎設施 · 為 AI agent 與量化流程而建。

狀態未知
© 2026 TW Market Data

TW Market Data(TWMD)提供之歷史資料與統計,非投資建議;投資決策與風險由您自行判斷。

  • 隱私權政策·
  • 服務條款·
  • Cookie 政策·
  • 可接受使用政策·
  • 資料來源與授權·
  • 法律文件總覽
EN

AI Agent

  • MCP Server
  • Skills 技能包
  • 工具清單
  • Agent 工作流範例
  • Agent 評測題庫
  • llms.txt
  • OpenAPI 規格

Security

  • 資安總覽
  • 可驗證資料
  • 信任中心
  • 標準與相容性
  • 監理對照表

Product

  • 資料集總覽
  • 題材研究
  • 統計資料
  • 文件
  • 接入指南
  • 試玩台(免註冊)
  • 免費方案
  • 解決方案

Company

  • 關於 TWMD
  • 部落格
  • 幫助中心
  • 方案價格

文件總覽

DASHBOARD

儀表板定價

FOR AI AGENTS

MCP ServerSkills(技能包)llms.txt工具清單OpenAPI SpecAgent 工作流範例

OVERVIEW

總覽快速開始認證來源政策資料分級資料血緣市場覆蓋

DATA APIS

利率快照全球總經世界銀行總經外銷訂單金額(按貨品別)製造業生產價值指數海關進出口貿易統計台灣公債殖利率曲線

GUIDES

如何取得財報三表如何查三大法人籌碼如何看市場狀態如何接策略・AI Agent

SDKS

Release StatusPython SDKJavaScript / TypeScript SDK

AI agent?先讀 /llms.txt 取得全站索引。

總體經濟

世界銀行總經

世界銀行發展指標——直接取自世界銀行的長期跨國總經序列。

← 世界銀行總經 資料集總覽

已驗證來源: World Bank·授權: 創用 CC 姓名標示 4.0·方案: developer·計費: 2 點·GET /v2/datasets/macro-worldbank

世界銀行總經是台灣市場資料集,來源為 World Bank,由 TW Market Data 以 GET /v2/datasets/macro-worldbank 提供。

總覽

macro-worldbank 針對世界銀行發展指標,每個指標每個年度回傳一列。此為國際來源的總經脈絡,非 TWSE 資料源;每列於 lineage 標明世界銀行指標代碼,數值可與世界銀行原始序列對帳。

欄位型別說明
country_isostring
country_namestring
indicator_codestring
indicator_namestring
yearnumber資料年度。
valuenumber當年度指標值。
source_groupstring
licensestring

涵蓋範圍

列數1,363,937
涵蓋起訖1960 – 2025
分級已驗證
量測時間2026-09-01取自資料集登錄表

範例回應

此為本端點的真實回應。資料列位於 "data" 之下,來源資訊如下方所示;各資料集形狀不盡相同,請以本頁為準。

{
"api_version": "v2",
"endpoint": "/v2/datasets/macro-worldbank",
"request_id": "req_b747ed1ecfac",
"plan_id": "enterprise",
"dataset": "macro_worldbank",
"dataset_id": "macro_worldbank",
"request_context": {
"scope": "worldbank_wdi_country_indicator_panel",
"coverage_type": "worldbank_open_data_wdi_ccby",
"filters": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"min_year": 2025,
"max_year": 2025
},
"quality": {
"row_count": 50,
"country_count": 50,
"indicator_count": 1,
"raw_payload_exposed": false
},
"lineage": {
"source_groups": [
"WorldBank"
],
"source_providers": [
"worldbank_open_data"
],
"source_families": [
"WorldBank_WDI"
],
"license": "CC-BY"
},
"error": null,
"data": [
{
"country_iso": "ABW",
"country_name": "Aruba",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 16.5191058508056,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
},
{
"country_iso": "AFE",
"country_name": "Africa Eastern and Southern",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 40.0294227514603,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
}
],
"data_count": 50,
"known_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"data_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"query": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"meta": {
"rows_returned": 50,
"mandatory_contract_fields_present": [
"data",
"error",
"lineage"
],
"plan": "enterprise",
"row_limit": 100000,
"is_limited": false
},
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "macro_worldbank",
"request_context": {
"scope": "worldbank_wdi_country_indicator_panel",
"coverage_type": "worldbank_open_data_wdi_ccby",
"filters": {
"country_iso": null,
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": null,
"year_from": null,
"year_to": null,
"limit": 50
},
"min_year": 2025,
"max_year": 2025
},
"quality": {
"row_count": 50,
"country_count": 50,
"indicator_count": 1,
"raw_payload_exposed": false
},
"lineage": {
"source_groups": [
"WorldBank"
],
"source_providers": [
"worldbank_open_data"
],
"source_families": [
"WorldBank_WDI"
],
"license": "CC-BY"
},
"error": null,
"data": [
{
"country_iso": "ABW",
"country_name": "Aruba",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 16.5191058508056,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
},
{
"country_iso": "AFE",
"country_name": "Africa Eastern and Southern",
"indicator_code": "SP.POP.0014.TO.ZS",
"indicator_name": "Population ages 0-14 (% of total population)",
"year": 2025,
"value": 40.0294227514603,
"source_group": "WorldBank",
"license": "CC-BY",
"lineage": {
"source": "worldbank_wdi_v2",
"endpoint": "api.worldbank.org"
}
}
],
"known_gaps": [
"worldbank_wdi_annual_panel",
"taiwan_absent_worldbank_non_member_use_business_indicator",
"not_taiwan_market_data"
],
"warnings": [
"not_investment_advice"
],
"envelope": {
"dataset_id": "macro_worldbank",
"scope": "worldbank_wdi_country_indicator_panel",
"row_count": 50
}
}
}

擷取自 2026-07-20 的線上 API。

出處

以下欄位會隨資料一併回傳,記錄這一列的來源。它們屬於出處而非本資料集要講的事實,因此列在這裡而不進欄位表。

lineage

授權與顯名

資料來源:World Bank Open Data

引用此資料集

TW Market Data. (n.d.). 世界銀行總經 [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/zh-TW/docs/api/macro/macro-worldbank

版本取自資料集自己的 as_of,不是這一頁的產生日期。沒有 as_of 的資料集就不列這個欄位,不會補一個看起來合理的值。 驗證簽章

相關資料集

可與本資料集對齊的其他資料集。每組都標出可用來 join 的欄位,規劃跨表查詢時不必自己猜。

  • 台灣公債殖利率曲線

    同分類:macro

  • 競貨幣匯率(JPY/KRW/CNY vs TWD)

    同分類:macro

  • 海關進出口貿易統計

    同分類:macro

  • 外銷訂單金額(按貨品別)

    同分類:macro

  • 利率快照

    同分類:macro

快速開始

  1. 把你的金鑰放進 X-API-Key 標頭。
  2. 加上查詢參數(symbol、日期區間、limit)。
  3. 送出請求並讀取 data 陣列。
curl "https://api.twmarketdata.com/v2/datasets/macro-worldbank?country=TWN" \
-H "X-API-Key: sk_live_..."

篩選參數

參數必填型別說明
country否string國家代碼,例如 TWN。

Python 範例

import requests

resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/macro-worldbank",
params={"country": "TWN"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])

OpenAPI

此端點為 GET /v2/datasets/macro-worldbank。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。

備註與限制

  • 此為世界銀行國際來源的總經脈絡,非 TWSE 市場資料——年度更新且有申報落差,故最新年度會落後於當前年度。
  • 此總經資料集的 symbol 參數為世界銀行指標代碼(如 NY.GDP.MKTP.CD),非股票代碼。

請求與回應

請求
curl "https://api.twmarketdata.com/v2/datasets/macro-worldbank" \
-H "X-API-Key: $TWMD_API_KEY"
回應
{
"api_version": "v2",
"endpoint": "/v2/datasets/macro-worldbank",
"request_id": "req_b747ed1ecfac",
"plan_id": "enterprise",
"dataset": "macro_worldbank",
"dataset_id": "macro_worldbank",
"quality": {
"row_count": "<number>",
"country_count": "<number>",
"indicator_count": "<number>",
"raw_payload_exposed": "<boolean>"
},
"error": null,
"data": [
{
"country_iso": "<string>",
"country_name": "<string>",
"indicator_code": "<string>",
"indicator_name": "<string>",
"year": "<number>",
"value": "<number>",
"source_group": "<string>",
"license": "<string>",
"lineage": {
"source": "<string>",
"endpoint": "<string>"
}
}
],
"data_count": 50,
"known_gaps": [
"<string>"
],
"data_gaps": [
"<string>"
],
"query": {
"country_iso": "<null>",
"indicator_code": "<string>",
"indicator_name": "<null>",
"year_from": "<null>",
"year_to": "<null>",
"limit": "<number>"
},
"meta": {
"rows_returned": "<number>",
"mandatory_contract_fields_present": "<array>",
"plan": "<string>",
"row_limit": "<number>",
"is_limited": "<boolean>"
},
"warnings": [
"<string>"
],
"envelope": {
"dataset_id": "<string>",
"request_context": {
"scope": "<string>",
"coverage_type": "<string>",
"filters": "<object>",
"min_year": "<number>",
"max_year": "<number>"
},
"quality": {
"row_count": "<number>",
"country_count": "<number>",
"indicator_count": "<number>",
"raw_payload_exposed": "<boolean>"
},
"lineage": {
"source_groups": "<array>",
"source_providers": "<array>",
"source_families": "<array>",
"license": "<string>"
},
"error": "<null>",
"data": "<array>",
"known_gaps": "<array>",
"warnings": "<array>",
"envelope": {
"dataset_id": "<string>",
"scope": "<string>",
"row_count": "<number>"
}
}
}
i