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

選擇權結算價可轉債期貨市場選擇權日線期貨法人籌碼可轉債參考

GUIDES

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

SDKS

Release StatusPython SDKJavaScript / TypeScript SDK

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

衍生與可轉債

期貨法人籌碼

TAIFEX 三大法人籌碼——上市期貨與選擇權中三大法人的每日淨部位。

已驗證來源: TAIFEX·方案: max·計費: 3 點·GET /v2/datasets/taifex-institutional-flow

總覽

taifex-institutional-flow 以官方 TAIFEX 三大法人交易報表為源,每交易日每個契約回傳一列,含外資、投信與自營商淨部位;每列附來源角色,數字可回溯交易所報表,而非僅憑信任。

欄位型別說明
contractstring期貨/選擇權契約代碼(如 TXF、TXO)。
datestring交易日。
foreign_netnumber外資淨部位(口)。
trust_netnumber投信淨部位(口)。
dealer_netnumber自營商淨部位(口)。
source_rolestringofficial_taifex。

涵蓋範圍

列數303
涵蓋起訖2024-01-03 至 2026-06-05
分級已驗證

範例回應

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

{  "dataset_id": "taifex_institutional_flow",  "request_context": {    "scope": "taifex_futures_options_institutional_flow_only",    "coverage_type": "bounded_verified_snapshot_set",    "filters": {      "trade_date": null,      "date_from": null,      "date_to": null,      "product_type": null,      "contract_code": null,      "investor_type": null,      "source_family": null,      "limit": 50    },    "min_trade_date": "2026-06-05",    "max_trade_date": "2026-06-05"  },  "quality": {    "row_count": 50,    "contract_count": 18,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "taifex_official"    ],    "source_roles": [      "official_taifex_institutional_daily"    ],    "source_families": [      "official_taifex_derivatives_public_page"    ]  },  "error": null,  "data": [    {      "trade_date": "2026-06-05",      "product_type": "futures",      "market_type": "futures",      "product_contract": "ETF期貨",      "expiry_month": "ALL",      "investor_type": "外資",      "long_open_interest": 17842,      "short_open_interest": 4475,      "net_open_interest": 13367,      "long_volume": 8418,      "short_volume": 8978,      "net_volume": -560,      "source_provider": "taifex_official",      "source_role": "official_taifex_institutional_daily",      "source_family": "official_taifex_derivatives_public_page",      "lineage": {        "dataset": "futures_institutional_investors_daily",        "trade_date": "2026-06-05",        "official_first": true,        "aggregate_scope": "all_expiries"      },      "data_gaps": [        "{'reasons': ['optional_missing_currency', 'optional_missing_market_scope', 'optional_missing_settlement_type', 'optional_missing_unit', 'upstream_expiry_month_unavailable_aggregate_scope']}"      ]    },    {      "trade_date": "2026-06-05",      "product_type": "futures",      "market_type": "futures",      "product_contract": "ETF期貨",      "expiry_month": "ALL",      "investor_type": "投信",      "long_open_interest": 4306,      "short_open_interest": 50,      "net_open_interest": 4256,      "long_volume": 0,      "short_volume": 0,      "net_volume": 0,      "source_provider": "taifex_official",      "source_role": "official_taifex_institutional_daily",      "source_family": "official_taifex_derivatives_public_page",      "lineage": {        "dataset": "futures_institutional_investors_daily",        "trade_date": "2026-06-05",        "official_first": true,        "aggregate_scope": "all_expiries"      },      "data_gaps": [        "{'reasons': ['optional_missing_currency', 'optional_missing_market_scope', 'optional_missing_settlement_type', 'optional_missing_unit', 'upstream_expiry_month_unavailable_aggregate_scope']}"      ]    }  ],  "data_count": 50,  "known_gaps": [    "futures_options_institutional_flow_only",    "no_settlement_price",    "not_options_daily_price_table"  ],  "warnings": [    "not_investment_advice"  ],  "envelope": {    "dataset_id": "taifex_institutional_flow",    "scope": "taifex_futures_options_institutional_flow_only",    "row_count": 50  }}

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

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

快速開始

  1. 把你的金鑰放進 X-API-Key 標頭。
  2. 加上查詢參數(symbol、日期區間、limit)。
  3. 送出請求並讀取 data 陣列。
curl "https://api.twmarketdata.com/v2/datasets/taifex-institutional-flow?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/taifex-institutional-flow",    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/taifex-institutional-flow",    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/taifex-institutional-flow。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。

備註與限制

  • 本頁先發佈以記錄端點,但即時數字刻意保留為 TODO,直到以具權限金鑰量測——不顯示任何佔位數值。

請求與回應

請求

curl "https://api.twmarketdata.com/v2/datasets/taifex-institutional-flow?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
{  "dataset_id": "taifex_institutional_flow",  "request_context": {    "scope": "taifex_futures_options_institutional_flow_only",    "coverage_type": "bounded_verified_snapshot_set",    "filters": {      "trade_date": null,      "date_from": null,      "date_to": null,      "product_type": null,      "contract_code": null,      "investor_type": null,      "source_family": null,      "limit": 50    },    "min_trade_date": "2026-06-05",    "max_trade_date": "2026-06-05"  },  "quality": {    "row_count": 50,    "contract_count": 18,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "taifex_official"    ],    "source_roles": [      "official_taifex_institutional_daily"    ],    "source_families": [      "official_taifex_derivatives_public_page"    ]  },  "error": null,  "data": [    {      "trade_date": "2026-06-05",      "product_type": "futures",      "market_type": "futures",      "product_contract": "ETF期貨",      "expiry_month": "ALL",      "investor_type": "外資",      "long_open_interest": 17842,      "short_open_interest": 4475,      "net_open_interest": 13367,      "long_volume": 8418,      "short_volume": 8978,      "net_volume": -560,      "source_provider": "taifex_official",      "source_role": "official_taifex_institutional_daily",      "source_family": "official_taifex_derivatives_public_page",      "lineage": {        "dataset": "futures_institutional_investors_daily",        "trade_date": "2026-06-05",        "official_first": true,        "aggregate_scope": "all_expiries"      },      "data_gaps": [        "{'reasons': ['optional_missing_currency', 'optional_missing_market_scope', 'optional_missing_settlement_type', 'optional_missing_unit', 'upstream_expiry_month_unavailable_aggregate_scope']}"      ]    },    {      "trade_date": "2026-06-05",      "product_type": "futures",      "market_type": "futures",      "product_contract": "ETF期貨",      "expiry_month": "ALL",      "investor_type": "投信",      "long_open_interest": 4306,      "short_open_interest": 50,      "net_open_interest": 4256,      "long_volume": 0,      "short_volume": 0,      "net_volume": 0,      "source_provider": "taifex_official",      "source_role": "official_taifex_institutional_daily",      "source_family": "official_taifex_derivatives_public_page",      "lineage": {        "dataset": "futures_institutional_investors_daily",        "trade_date": "2026-06-05",        "official_first": true,        "aggregate_scope": "all_expiries"      },      "data_gaps": [        "{'reasons': ['optional_missing_currency', 'optional_missing_market_scope', 'optional_missing_settlement_type', 'optional_missing_unit', 'upstream_expiry_month_unavailable_aggregate_scope']}"      ]    }  ],  "data_count": 50,  "known_gaps": [    "futures_options_institutional_flow_only",    "no_settlement_price",    "not_options_daily_price_table"  ],  "warnings": [    "not_investment_advice"  ],  "envelope": {    "dataset_id": "taifex_institutional_flow",    "scope": "taifex_futures_options_institutional_flow_only",    "row_count": 50  }}

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

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

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