TW Market Data LogoTW Market Data

核心資料

市場與價格

TWSE / TPEx 日線、還原價格、指數與市場廣度

財務與成長

月營收、財報三表、財務指標與估值資料

籌碼與資金

三大法人與融資融券資料

公司與結構

公司與事件

公司基本資料、公告、事件、公司行動與股利

分類與結構

主題分類、指數分類與跨資料集 mapping

策略與量化

Features、Factor Data、Time Alignment 與 Screener

平台能力

API 存取

REST API、認證與第一個 request

查詢與工具

Search API、Query API、欄位清單與查詢範例

Tools / MCP

Agent workflow、MCP tools 與 OpenAPI 入口

方案價格文件觀點文章
EN儀表板

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

隱私政策|服務條款|幫助中心||EN|TW Market Data © 2026

文件總覽

DASHBOARD

儀表板定價

FOR AI AGENTS

MCP Serverllms.txt工具清單OpenAPI SpecAgent 工作流範例
Webhooks建置中

OVERVIEW

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

DATA APIS

指數資料市場指數整合日線價格TPEx 日線價格TWSE 日線價格除權除息價格調整因子漲跌停價日線報酬指數日線還原價格指數成分股市場廣度核心估值日線估值資料技術指標指數分類市場概況快照

GUIDES

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

SDKS

Release StatusPython SDKJavaScript / TypeScript SDK

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

市場與價格

市場概況快照

市場概況快照——每交易日的市場層級匯總:指數水準、總成交金額與上漲/下跌/平盤家數。

參考來源: TWSE·方案: pro·計費: 2 點·GET /v2/datasets/market-overview-snapshots

總覽

market-overview-snapshots 每個市場每交易日回傳一列匯總,概括全市場——指數水準、總成交金額與上漲、下跌、平盤家數。此為參考型概況面;每列附來源角色,數字可回溯官方發布。歷史回補完成前,涵蓋為部分。

欄位型別說明
boardstring市場別(TWSE/TPEx)。
datestring交易日。
total_turnovernumber市場總成交金額(新台幣)。
advancersnumber上漲家數。
declinersnumber下跌家數。
source_rolestring正規來源角色(official_twse_market_overview)。

涵蓋範圍

列數354
涵蓋起訖2023-06-01 至 2026-05-28
分級參考

範例回應

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

{  "api_version": "v2",  "dataset": "market_overview_snapshots",  "dataset_version": "v2.0.0-preview",  "release_version": "v2.2026-05-28.preview",  "release_date": "2026-05-28",  "data_as_of": "2026-05-28",  "request_context": {    "ticker": "TWSE",    "as_of_date": "2026-05-28",    "family": "taiwan_macro",    "field_group_type": "canonical",    "dataset_view": "market_overview_snapshots_v1",    "source_table": "market_overview_snapshots",    "scope": "market_overview_snapshots_only",    "coverage_type": "seeded_anchor_snapshot_set",    "supported_sort_by": [      "as_of_date"    ],    "supported_filter_fields": [      "market",      "as_of_date",      "date_from"    ],    "market_filter": "TWSE",    "date_range": {      "date_from": null,      "date_to": null    }  },  "data": [    {      "market_code": "TWSE",      "as_of_date": "2026-05-28",      "index_level": 43636.44,      "index_change": -620.36,      "index_change_pct": -1.4,      "advancers": null,      "decliners": null,      "unchanged": null,      "turnover_value": 1531713564563,      "volume_shares": 11122477394,      "transaction_count": null,      "listed_count": null,      "traded_count": null,      "provider": "twse_official",      "source_role": "official_market_overview",      "lineage": {        "index_data": {          "lineage": {            "source": "TWSE_MI_INDEX",            "source_date": "2026-05-28",            "source_type": "ALLBUT0999",            "special_note": null,            "identity_rule": "exact_index_name_match",            "source_lineage": {              "row_number": 1,              "table_index": 0,              "table_title": "115年05月28日 價格指數(臺灣證券交易所)"            },            "source_table_id": "table_0",            "turnover_lineage": {              "stat_item": "1.一般股票",              "row_number": 0,              "table_index": 6,              "table_title": "115年05月28日 大盤統計資訊"            }          },          "provider": "twse_official",          "as_of_date": "2026-05-28",          "source_role": "official_twse_mi_index"        },        "mapping_rule": "full_outer_union_on_as_of_date_for_twse_aggregate_anchor",        "source_family": "official_first:market_overview",        "source_tables": [          "index_data_items",          "market_breadth_items"        ],        "market_breadth": null      },      "data_gaps": [        "missing_market_breadth_items_row",        "missing_transaction_count_from_approved_inputs",        "missing_listed_count_from_approved_inputs"      ],      "not_investment_advice": true,      "market_scope": "TWSE",      "currency": "TWD",      "is_placeholder": false    },    {      "market_code": "TWSE",      "as_of_date": "2026-05-27",      "index_level": 44256.8,      "index_change": 731.43,      "index_change_pct": 1.68,      "advancers": 333,      "decliners": 672,      "unchanged": 68,      "turnover_value": 1518335225482,      "volume_shares": 10767509251,      "transaction_count": null,      "listed_count": null,      "traded_count": 1073,      "provider": "twse_official",      "source_role": "official_market_overview",      "lineage": {        "index_data": {          "lineage": {            "source": "TWSE_MI_INDEX",            "source_date": "2026-05-27",            "source_type": "ALLBUT0999",            "special_note": null,            "identity_rule": "exact_index_name_match",            "source_lineage": {              "row_number": 1,              "table_index": 0,              "table_title": "115年05月27日 價格指數(臺灣證券交易所)"            },            "source_table_id": "table_0",            "turnover_lineage": {              "stat_item": "1.一般股票",              "row_number": 0,              "table_index": 6,              "table_title": "115年05月27日 大盤統計資訊"            }          },          "provider": "twse_official",          "as_of_date": "2026-05-27",          "source_role": "official_twse_mi_index"        },        "mapping_rule": "full_outer_union_on_as_of_date_for_twse_aggregate_anchor",        "source_family": "official_first:market_overview",        "source_tables": [          "index_data_items",          "market_breadth_items"        ],        "market_breadth": {          "lineage": {            "derived_from": "twse_mi_index_market_breadth",            "upstream_lineage": {              "request_type": "MS",              "parser_source_date": "2026-05-27",              "source_lineage_rows": [                {                  "row_number": 0,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                },                {                  "row_number": 1,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                },                {                  "row_number": 2,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                }              ]            }          },          "provider": "twse_official",          "as_of_date": "2026-05-27",          "source_role": "derived_market_breadth"        }      },      "data_gaps": [        "missing_transaction_count_from_approved_inputs",        "missing_listed_count_from_approved_inputs"      ],      "not_investment_advice": true,      "market_scope": "TWSE",      "currency": "TWD",      "is_placeholder": false    }  ],  "quality": {    "freshness_state": "fresh",    "freshness_as_of": "2026-05-28",    "completeness_ratio": 1,    "quality_status": "ready"  },  "lineage": {    "source_role": "canonical",    "selected_source": "market_overview_snapshots",    "fallback_chain": [      "index_data_items",      "market_breadth_items"    ],    "policy_notes": [      "official/public-first canonical",      "market_overview_snapshots is the seeded anchor surface for index and breadth derivations",      "not_investment_advice"    ]  },  "error": {    "error_code": null,    "error_message": null,    "dataset": "market_overview_snapshots",    "request_id": "read-api-20260528",    "blocking_gate": null  },  "dataset_id": "market_overview_snapshots",  "data_count": 50,  "known_gaps": [    "listed_count_unavailable_from_official_twse_mi_index_ms",    "missing_index_data_items_row",    "missing_listed_count_from_approved_inputs"  ],  "warnings": [    "not_investment_advice"  ]}

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

本頁顯示原始中文值;英文頁會以標記取代,以維持全英文。

快速開始

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

篩選參數

參數必填型別說明
symbol是string股票代碼,例如 2330。
start_date否string (YYYY-MM-DD)查詢起始日期。
end_date否string (YYYY-MM-DD)查詢結束日期。
limit否integer回傳筆數上限。

Python 範例

第一個呼叫:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/market-overview-snapshots",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["data"])

帶日期區間篩選:

import requests # The full verified example — the same call with every supported filter set.resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/market-overview-snapshots",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]:    print(row)

OpenAPI

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

備註與限制

  • 部分涵蓋:此概況面仍在回補,故歷史視窗可能短於逐檔價格資料集。請視為市場層級摘要,而非逐檔證券資料。

請求與回應

請求

curl "https://api.twmarketdata.com/v2/datasets/market-overview-snapshots?symbol=2330&start_date=2026-01-01&end_date=2026-06-30&limit=5" \  -H "X-API-Key: $TWMD_API_KEY"

以 X-API-Key 標頭認證,使用儀表板發放的 sk_live_ 金鑰。

回應

JSON
{  "api_version": "v2",  "dataset": "market_overview_snapshots",  "dataset_version": "v2.0.0-preview",  "release_version": "v2.2026-05-28.preview",  "release_date": "2026-05-28",  "data_as_of": "2026-05-28",  "request_context": {    "ticker": "TWSE",    "as_of_date": "2026-05-28",    "family": "taiwan_macro",    "field_group_type": "canonical",    "dataset_view": "market_overview_snapshots_v1",    "source_table": "market_overview_snapshots",    "scope": "market_overview_snapshots_only",    "coverage_type": "seeded_anchor_snapshot_set",    "supported_sort_by": [      "as_of_date"    ],    "supported_filter_fields": [      "market",      "as_of_date",      "date_from"    ],    "market_filter": "TWSE",    "date_range": {      "date_from": null,      "date_to": null    }  },  "data": [    {      "market_code": "TWSE",      "as_of_date": "2026-05-28",      "index_level": 43636.44,      "index_change": -620.36,      "index_change_pct": -1.4,      "advancers": null,      "decliners": null,      "unchanged": null,      "turnover_value": 1531713564563,      "volume_shares": 11122477394,      "transaction_count": null,      "listed_count": null,      "traded_count": null,      "provider": "twse_official",      "source_role": "official_market_overview",      "lineage": {        "index_data": {          "lineage": {            "source": "TWSE_MI_INDEX",            "source_date": "2026-05-28",            "source_type": "ALLBUT0999",            "special_note": null,            "identity_rule": "exact_index_name_match",            "source_lineage": {              "row_number": 1,              "table_index": 0,              "table_title": "115年05月28日 價格指數(臺灣證券交易所)"            },            "source_table_id": "table_0",            "turnover_lineage": {              "stat_item": "1.一般股票",              "row_number": 0,              "table_index": 6,              "table_title": "115年05月28日 大盤統計資訊"            }          },          "provider": "twse_official",          "as_of_date": "2026-05-28",          "source_role": "official_twse_mi_index"        },        "mapping_rule": "full_outer_union_on_as_of_date_for_twse_aggregate_anchor",        "source_family": "official_first:market_overview",        "source_tables": [          "index_data_items",          "market_breadth_items"        ],        "market_breadth": null      },      "data_gaps": [        "missing_market_breadth_items_row",        "missing_transaction_count_from_approved_inputs",        "missing_listed_count_from_approved_inputs"      ],      "not_investment_advice": true,      "market_scope": "TWSE",      "currency": "TWD",      "is_placeholder": false    },    {      "market_code": "TWSE",      "as_of_date": "2026-05-27",      "index_level": 44256.8,      "index_change": 731.43,      "index_change_pct": 1.68,      "advancers": 333,      "decliners": 672,      "unchanged": 68,      "turnover_value": 1518335225482,      "volume_shares": 10767509251,      "transaction_count": null,      "listed_count": null,      "traded_count": 1073,      "provider": "twse_official",      "source_role": "official_market_overview",      "lineage": {        "index_data": {          "lineage": {            "source": "TWSE_MI_INDEX",            "source_date": "2026-05-27",            "source_type": "ALLBUT0999",            "special_note": null,            "identity_rule": "exact_index_name_match",            "source_lineage": {              "row_number": 1,              "table_index": 0,              "table_title": "115年05月27日 價格指數(臺灣證券交易所)"            },            "source_table_id": "table_0",            "turnover_lineage": {              "stat_item": "1.一般股票",              "row_number": 0,              "table_index": 6,              "table_title": "115年05月27日 大盤統計資訊"            }          },          "provider": "twse_official",          "as_of_date": "2026-05-27",          "source_role": "official_twse_mi_index"        },        "mapping_rule": "full_outer_union_on_as_of_date_for_twse_aggregate_anchor",        "source_family": "official_first:market_overview",        "source_tables": [          "index_data_items",          "market_breadth_items"        ],        "market_breadth": {          "lineage": {            "derived_from": "twse_mi_index_market_breadth",            "upstream_lineage": {              "request_type": "MS",              "parser_source_date": "2026-05-27",              "source_lineage_rows": [                {                  "row_number": 0,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                },                {                  "row_number": 1,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                },                {                  "row_number": 2,                  "table_index": 7,                  "table_title": "漲跌證券數合計"                }              ]            }          },          "provider": "twse_official",          "as_of_date": "2026-05-27",          "source_role": "derived_market_breadth"        }      },      "data_gaps": [        "missing_transaction_count_from_approved_inputs",        "missing_listed_count_from_approved_inputs"      ],      "not_investment_advice": true,      "market_scope": "TWSE",      "currency": "TWD",      "is_placeholder": false    }  ],  "quality": {    "freshness_state": "fresh",    "freshness_as_of": "2026-05-28",    "completeness_ratio": 1,    "quality_status": "ready"  },  "lineage": {    "source_role": "canonical",    "selected_source": "market_overview_snapshots",    "fallback_chain": [      "index_data_items",      "market_breadth_items"    ],    "policy_notes": [      "official/public-first canonical",      "market_overview_snapshots is the seeded anchor surface for index and breadth derivations",      "not_investment_advice"    ]  },  "error": {    "error_code": null,    "error_message": null,    "dataset": "market_overview_snapshots",    "request_id": "read-api-20260528",    "blocking_gate": null  },  "dataset_id": "market_overview_snapshots",  "data_count": 50,  "known_gaps": [    "listed_count_unavailable_from_official_twse_mi_index_ms",    "missing_index_data_items_row",    "missing_listed_count_from_approved_inputs"  ],  "warnings": [    "not_investment_advice"  ]}

擷取自對此端點的真實呼叫,非手寫。

此資料集的資料列在 "data" 之下。各資料集的信封不同,請以本頁為準,勿沿用其他頁的形狀。

本頁的分級徽章屬文件分級,並非回應欄位。