Building an AI agent? Start with /llms.txt for the full site index.
Macroeconomics
Global macroeconomic context series compiled from international bodies — cross-country reference readings alongside the Taiwan-market datasets.
GET /v2/datasets/macro-globalmacro-global returns one row per indicator per period for global macro series compiled from international bodies. It is international-source context to sit alongside the Taiwan-market data, not a TWSE feed; each row carries its source role and lineage so the upstream authority is explicit.
| Field | Type | Description |
|---|---|---|
indicator | string | Indicator code (e.g. gdp_growth, cpi_yoy). |
country | string | ISO country / region code. |
period | string | Reference period (YYYY or YYYY-MM). |
value | number | Indicator value for the period. |
source_role | string | Canonical source role (international_macro). |
lineage | object | Upstream international body + release for the value. |
| Rows | 119,463 |
| Window | 1947-01-01 – 2026-07-02 |
| Grade | Verified |
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/macro-global?series_id=GDP" \ -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/macro-global", params={"series_id": "GDP"}, 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/macro-global", params={"series_id": "GDP"}, headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json())This endpoint is GET /v2/datasets/macro-global. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.