Building an AI agent? Start with /llms.txt for the full site index.
Market & Prices
Index constituents — the member securities of each index with their weights, resolved from the official index and market data.
GET /v2/datasets/index-constituentsindex-constituents returns one row per member security of an index, with the weight it carries. It is a derived surface: the membership comes from the official index definition and the weights are computed from official market data, so a constituent list is reproducible rather than opaque. Each row carries lineage back to those inputs.
| Field | Type | Description |
|---|---|---|
index_code | string | Index code the constituents belong to. |
symbol | string | Constituent ticker. |
weight_pct | number | Weight of the constituent in the index (percent, derived). |
as_of | string | Data date the membership was resolved against. |
source_role | string | Canonical source role (derived_index_constituents). |
| Rows | 546 |
| Window | 2026-07-01 (single-day snapshot) |
| Grade | Derived |
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-constituents?symbol=2330" \ -H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
symbol | Yes | string | Ticker, e.g. 2330. |
start_date | No | string (YYYY-MM-DD) | Start of the query range. |
end_date | No | string (YYYY-MM-DD) | End of the query range. |
limit | No | integer | Maximum rows to return. |
A first call:
import requests resp = requests.get( "https://api.twmarketdata.com/v2/datasets/index-constituents", 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-constituents", params={"symbol": "2330"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json())This endpoint is GET /v2/datasets/index-constituents. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.