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

基金/ETF 主檔稅籍/商業登記ETF 持股明細

GUIDES

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

SDKS

Release StatusPython SDKJavaScript / TypeScript SDK

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

基金與企業情報

ETF 持股明細

ETF 持股明細——每檔 ETF 最新揭露的成分股清單(成分、權重、資料日期),來源為發行機構。

參考來源: Issuer·方案: pro·計費: 2 點·GET /v2/datasets/etf-holdings

總覽

etf-holdings 為參考型資料集:每檔 ETF 回傳其最新揭露投資組合的成分股與各自權重,來源為發行機構。此為發行機構受限的最新快照——僅涵蓋發行機構有揭露持股的 ETF,且僅最新一期揭露,非全市場或歷史持股序列。每列附來源角色與 lineage,權重可與發行機構揭露對帳。

欄位型別說明
symbolstringETF 代碼(如 0050)。
constituent_symbolstring所持成分股之代碼。
constituent_namestring所持成分股之名稱。
weight_pctnumber該成分股於 ETF 之權重(百分比)。
as_ofstring此持股快照之揭露日期。
source_rolestring正規來源角色(issuer_etf_holdings)。

涵蓋範圍

列數9,425
涵蓋起訖2026-06-04 至 2026-07-16
分級參考

範例回應

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

{  "dataset_id": "etf_holdings",  "request_context": {    "scope": "fubon_issuer_limited_latest_available_snapshot_set",    "coverage_type": "latest_available_snapshot_set",    "filters": {      "etf_code": null,      "issuer": null,      "as_of_date": null,      "holding_ticker": null,      "market": null,      "source_family": null,      "limit": 50    },    "min_as_of_date": "2026-07-16",    "max_as_of_date": "2026-07-16"  },  "quality": {    "row_count": 50,    "etf_count": 1,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "etfapi.yuantaetfs.com"    ],    "source_roles": [      "etf_holdings"    ],    "source_families": [      "pcf_yuanta"    ]  },  "error": null,  "data": [    {      "etf_code": "0050",      "etf_name": "元大台灣卓越50基金",      "issuer": "yuanta",      "market": "TWSE",      "as_of_date": "2026-07-16",      "holding_ticker": "1216",      "holding_name": "統一",      "holding_weight": 0.38,      "holding_units": 108225075,      "holding_market": null,      "source_provider": "etfapi.yuantaetfs.com",      "source_role": "etf_holdings",      "source_family": "pcf_yuanta",      "lineage": {        "url": "https://etfapi.yuantaetfs.com/ectranslation/api/bridge?APIType=ETFAPI&CompanyName=YUANTAFUNDS&PageName=%2FtradeInfo%2Fpcf%2F0050&DeviceId=null&FuncId=PCF%2FDaily&AppName=ETF&Device=3&Platform=ETF&ticker=0050&ndate=20260716",        "parser": "feature_engine.etf.pcf_sources:yuanta",        "source": "official_issuer_pcf",        "pcf_meta": {          "nav": 106.36,          "fundid": "1066",          "osunit": 21113000000,          "anndate": "20260717",          "totalav": 2245633183230,          "upddate": "2026-07-16 16:24:05",          "trandate": "20260716",          "inkind_rows": 50        },        "fetched_at": "2026-07-18T17:47:07.565821+00:00",        "parser_version": "v1"      },      "data_gaps": []    },    {      "etf_code": "0050",      "etf_name": "元大台灣卓越50基金",      "issuer": "yuanta",      "market": "TWSE",      "as_of_date": "2026-07-16",      "holding_ticker": "1303",      "holding_name": "南亞",      "holding_weight": 1.07,      "holding_units": 108086690,      "holding_market": null,      "source_provider": "etfapi.yuantaetfs.com",      "source_role": "etf_holdings",      "source_family": "pcf_yuanta",      "lineage": {        "url": "https://etfapi.yuantaetfs.com/ectranslation/api/bridge?APIType=ETFAPI&CompanyName=YUANTAFUNDS&PageName=%2FtradeInfo%2Fpcf%2F0050&DeviceId=null&FuncId=PCF%2FDaily&AppName=ETF&Device=3&Platform=ETF&ticker=0050&ndate=20260716",        "parser": "feature_engine.etf.pcf_sources:yuanta",        "source": "official_issuer_pcf",        "pcf_meta": {          "nav": 106.36,          "fundid": "1066",          "osunit": 21113000000,          "anndate": "20260717",          "totalav": 2245633183230,          "upddate": "2026-07-16 16:24:05",          "trandate": "20260716",          "inkind_rows": 50        },        "fetched_at": "2026-07-18T17:47:07.565821+00:00",        "parser_version": "v1"      },      "data_gaps": []    }  ],  "data_count": 50,  "known_gaps": [    "latest_available_snapshot_only",    "issuer_limited_fubon_only",    "approved_etf_scope_only=fubon_page_discovered_50_etfs"  ],  "warnings": [    "not_investment_advice"  ],  "envelope": {    "dataset_id": "etf_holdings",    "scope": "fubon_issuer_limited_latest_available_snapshot_set",    "row_count": 50  }}

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

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

快速開始

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

篩選參數

參數必填型別說明
symbol否string以股票代碼篩選單一標的。
limit否integer回傳筆數上限。

Python 範例

第一個呼叫:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/etf-holdings",    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/etf-holdings",    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/etf-holdings。完整機器可讀 schema(參數、認證、回應封裝)見 OpenAPI spec。

備註與限制

  • 發行機構受限的最新快照:涵蓋範圍為發行機構有揭露持股的 ETF,且僅其最新揭露日期——請勿當作全市場或 point-in-time 歷史持股序列使用。
  • 此資料集的 symbol 參數為 ETF 代碼(如 0050),非一般股票代碼。

請求與回應

請求

curl "https://api.twmarketdata.com/v2/datasets/etf-holdings?symbol=2330&limit=5" \  -H "X-API-Key: $TWMD_API_KEY"

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

回應

JSON
{  "dataset_id": "etf_holdings",  "request_context": {    "scope": "fubon_issuer_limited_latest_available_snapshot_set",    "coverage_type": "latest_available_snapshot_set",    "filters": {      "etf_code": null,      "issuer": null,      "as_of_date": null,      "holding_ticker": null,      "market": null,      "source_family": null,      "limit": 50    },    "min_as_of_date": "2026-07-16",    "max_as_of_date": "2026-07-16"  },  "quality": {    "row_count": 50,    "etf_count": 1,    "sensitive_fields_exposed": false  },  "lineage": {    "source_providers": [      "etfapi.yuantaetfs.com"    ],    "source_roles": [      "etf_holdings"    ],    "source_families": [      "pcf_yuanta"    ]  },  "error": null,  "data": [    {      "etf_code": "0050",      "etf_name": "元大台灣卓越50基金",      "issuer": "yuanta",      "market": "TWSE",      "as_of_date": "2026-07-16",      "holding_ticker": "1216",      "holding_name": "統一",      "holding_weight": 0.38,      "holding_units": 108225075,      "holding_market": null,      "source_provider": "etfapi.yuantaetfs.com",      "source_role": "etf_holdings",      "source_family": "pcf_yuanta",      "lineage": {        "url": "https://etfapi.yuantaetfs.com/ectranslation/api/bridge?APIType=ETFAPI&CompanyName=YUANTAFUNDS&PageName=%2FtradeInfo%2Fpcf%2F0050&DeviceId=null&FuncId=PCF%2FDaily&AppName=ETF&Device=3&Platform=ETF&ticker=0050&ndate=20260716",        "parser": "feature_engine.etf.pcf_sources:yuanta",        "source": "official_issuer_pcf",        "pcf_meta": {          "nav": 106.36,          "fundid": "1066",          "osunit": 21113000000,          "anndate": "20260717",          "totalav": 2245633183230,          "upddate": "2026-07-16 16:24:05",          "trandate": "20260716",          "inkind_rows": 50        },        "fetched_at": "2026-07-18T17:47:07.565821+00:00",        "parser_version": "v1"      },      "data_gaps": []    },    {      "etf_code": "0050",      "etf_name": "元大台灣卓越50基金",      "issuer": "yuanta",      "market": "TWSE",      "as_of_date": "2026-07-16",      "holding_ticker": "1303",      "holding_name": "南亞",      "holding_weight": 1.07,      "holding_units": 108086690,      "holding_market": null,      "source_provider": "etfapi.yuantaetfs.com",      "source_role": "etf_holdings",      "source_family": "pcf_yuanta",      "lineage": {        "url": "https://etfapi.yuantaetfs.com/ectranslation/api/bridge?APIType=ETFAPI&CompanyName=YUANTAFUNDS&PageName=%2FtradeInfo%2Fpcf%2F0050&DeviceId=null&FuncId=PCF%2FDaily&AppName=ETF&Device=3&Platform=ETF&ticker=0050&ndate=20260716",        "parser": "feature_engine.etf.pcf_sources:yuanta",        "source": "official_issuer_pcf",        "pcf_meta": {          "nav": 106.36,          "fundid": "1066",          "osunit": 21113000000,          "anndate": "20260717",          "totalav": 2245633183230,          "upddate": "2026-07-16 16:24:05",          "trandate": "20260716",          "inkind_rows": 50        },        "fetched_at": "2026-07-18T17:47:07.565821+00:00",        "parser_version": "v1"      },      "data_gaps": []    }  ],  "data_count": 50,  "known_gaps": [    "latest_available_snapshot_only",    "issuer_limited_fubon_only",    "approved_etf_scope_only=fubon_page_discovered_50_etfs"  ],  "warnings": [    "not_investment_advice"  ],  "envelope": {    "dataset_id": "etf_holdings",    "scope": "fubon_issuer_limited_latest_available_snapshot_set",    "row_count": 50  }}

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

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

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