Building an AI agent? Start with /llms.txt for the full site index.
Market & Prices
Index classification — the reference lookup mapping each index code to its family and category (broad-market, sector, thematic).
GET /v2/datasets/index-classificationindex-classification is a reference dataset: one record per index describing where it sits in the TWSE index hierarchy. Use it to resolve an index code to its name and category, or to enumerate the indices in a family. It is a lookup snapshot, not a time series of levels.
| Field | Type | Description |
|---|---|---|
index_code | string | Index code. |
index_name | string | Index display name. |
category | string | Classification (broad-market / sector / thematic). |
family | string | Index family the code belongs to. |
source_role | string | Canonical source role (official_twse_index_master). |
| Rows | 5 |
| Window | 2026-05-22 – 2026-05-28 |
| Grade | Reference |
TODO — no real response has been captured for this dataset yet. It needs an entitled API key, or its required parameters are not yet known. Rather than show an example nobody has observed, this section stays empty.
curl "https://api.twmarketdata.com/v2/datasets/index-classification?symbol=2330" \ -H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
symbol | No | string | Ticker to filter to a single security. |
limit | No | integer | Maximum rows to return. |
A first call:
import requests resp = requests.get( "https://api.twmarketdata.com/v2/datasets/index-classification", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json())With a date-range filter:
import requests # The full verified example — the same call with every supported filter set.resp = requests.get( "https://api.twmarketdata.com/v2/datasets/index-classification", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json())This endpoint is GET /v2/datasets/index-classification. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.