Building an AI agent? Start with /llms.txt for the full site index.
Market & Prices
Daily levels for TWSE market indices — the TAIEX and its sector indices, open/high/low/close by trading day.
GET /v2/datasets/market-indexMarket indices is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/market-index.
market-index returns one row per index per trading day from the official TWSE index publication, covering the headline TAIEX and the sector indices. Each row carries its source role so an index level can be traced back to the exchange feed.
| Field | Type | Description |
|---|---|---|
index_identity | object | |
market_identity | object | |
index_level | object | |
daily_change | object | |
turnover | object | |
safe_usage_notes | array | |
available_tools_or_endpoints | object |
| Rows | ~4,174 |
| Window | 2009-01-05 – 2026-09-04 |
| Grade | Verified |
| Measured | 2026-09-04from the dataset registry |
A real response from this endpoint. Rows are returned under "items", and provenance is carried in the shape shown below — it is not identical across datasets, so read this page's rather than assuming another's.
{
"dataset_id": "market-index",
"row_count": 50,
"items": [
{
"index_identity": {
"index_code": "TWSE_TAIEX",
"index_name": "<Chinese value - see the zh page>",
"index_version": "v1",
"index_type": "price"
},
"market_identity": {
"market": "TWSE",
"as_of_date": "2026-08-05",
"provider": "twse_official",
"source_role": "official_twse_mi_index"
},
"index_level": {
"value": 44611.6
},
"daily_change": {
"points": 1250.94,
"return_pct": 2.88
},
"turnover": {
"turnover_value": null,
"volume_shares": null
},
"source_lineage": {
"scope": "<Chinese value - see the zh page>",
"source": "TWSE_MI_INDEX",
"match_rule": "exact string equality; total-return index explicitly excluded",
"source_url": "https://www.twse.com.tw/exchangeReport/MI_INDEX?response=json&date=20260805&type=IND",
"matched_index_name": "<Chinese value - see the zh page>",
"index_return_pct_units": "percent (matches the stored convention)"
},
"data_gaps": [],
"safe_usage_notes": [
"breadth_overview_sector_rows_are_held",
"not_investment_advice",
"twse_taiex_index_only_scope"
],
"available_tools_or_endpoints": {
"dataset_endpoint": "/v2/datasets/market-index",
"lookup_hint": "index_code=TWSE_TAIEX&market=TWSE",
"scope_note": "taiex_index_only_read_model"
}
},
{
"index_identity": {
"index_code": "TWSE_TAIEX",
"index_name": "<Chinese value - see the zh page>",
"index_version": "v1",
"index_type": "price"
},
"market_identity": {
"market": "TWSE",
"as_of_date": "2026-08-04",
"provider": "twse_official",
"source_role": "official_twse_mi_index"
},
"index_level": {
"value": 43360.66
},
"daily_change": {
"points": -25.75,
"return_pct": -0.06
},
"turnover": {
"turnover_value": null,
"volume_shares": null
},
"source_lineage": {
"scope": "<Chinese value - see the zh page>",
"source": "TWSE_MI_INDEX",
"match_rule": "exact string equality; total-return index explicitly excluded",
"source_url": "https://www.twse.com.tw/exchangeReport/MI_INDEX?response=json&date=20260804&type=IND",
"matched_index_name": "<Chinese value - see the zh page>",
"index_return_pct_units": "percent (matches the stored convention)"
},
"data_gaps": [],
"safe_usage_notes": [
"breadth_overview_sector_rows_are_held",
"not_investment_advice",
"twse_taiex_index_only_scope"
],
"available_tools_or_endpoints": {
"dataset_endpoint": "/v2/datasets/market-index",
"lookup_hint": "index_code=TWSE_TAIEX&market=TWSE",
"scope_note": "taiex_index_only_read_model"
}
}
],
"held_policy": {
"market_breadth_items": "held",
"market_overview_snapshots": "held",
"sector_or_unknown_index_rows": "held"
}
}Captured from the live API on 2026-07-20.
Chinese data values are shown as a marker here so this page stays in English; the /zh page shows them verbatim.
These columns are returned alongside the data and record where the row came from. They are provenance, not the dataset's subject matter, so they are listed here rather than in the field table.
source_lineagedata_gapsPart of the data in this service is obtained from the Government Open Data Platform (data.gov.tw) and used under the Open Government Data License, version 1.0. Providing agencies: Taiwan Stock Exchange, Taipei Exchange, Taiwan Futures Exchange, Taiwan Depository & Clearing Corporation, National Development Council, Central Bank of the Republic of China (Taiwan), Department of Statistics of the Ministry of Economic Affairs, and Customs Administration of the Ministry of Finance. The value-added processing, derived calculations and presentation in this service are the responsibility of TWMD and are not associated with the providing agencies.
TW Market Data. (n.d.). Market indices [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/en/docs/api/market-prices/market-index
The version is the dataset's own as_of, not the date this page was built. Where we have no as_of the field is left out rather than filled in. Check a signature
Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.
Same domain: market-prices
Same domain: market-prices
Same domain: market-prices
Same domain: market-prices
Same domain: market-prices
curl "https://api.twmarketdata.com/v2/datasets/market-index?index_code=TWSE_TAIEX&market=TWSE&start_date=2026-06-01&end_date=2026-07-15&limit=5" \
-H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
index_code | No | string | Index code, e.g. TWSE_TAIEX. Note IX0001 is not a valid code for this endpoint. |
market | No | string | Market. TWSE returns rows; TPEX currently returns none. |
start_date | No | string | Start of the query range (YYYY-MM-DD). |
end_date | No | string | End of the query range (YYYY-MM-DD). |
limit | No | integer | Maximum rows to return; the endpoint rejects anything above 500. |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/market-index",
params={"index_code": "TWSE_TAIEX", "market": "TWSE", "limit": "5"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["items"])This endpoint is GET /v2/datasets/market-index. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.