TW Market Data LogoTW Market Data

Core data

Market & prices

TWSE / TPEx daily bars, adjusted prices, indices, and market breadth

Financials & growth

Monthly revenue, the three financial statements, financial metrics, and valuation data

Flows & positioning

Institutional investors and margin & short-selling data

Company & structure

Company & events

Company profiles, disclosures, events, corporate actions, and dividends

Taxonomy & structure

Theme taxonomy, index classification, and cross-dataset mapping

Strategy & quant

Features, factor data, time alignment, and screener

Platform capabilities

API access

REST API, authentication, and your first request

Query & tools

Search API, Query API, field lists, and query examples

Tools / MCP

Agent workflows, MCP tools, and the OpenAPI entry point

PricingDocsBlog
中文Dashboard

TW Market Data (TWMD) provides historical data and statistics, not investment advice; investment decisions and their risks are your own.

Privacy Policy|Terms of Service|Help Center||中文|TW Market Data © 2026

Documentation

DASHBOARD

DashboardPricing

FOR AI AGENTS

MCP Serverllms.txtTool manifestOpenAPI SpecAgent workflow examples
WebhooksBuilding

OVERVIEW

OverviewQuick startAuthenticationSource policyData gradesData lineageMarket coverage

DATA APIS

ScreenerIssuer profileSecurity masterTheme taxonomyWarrants referenceBroker-branch reference

GUIDES

How to get the 3 financial statementsHow to read institutional flowsHow to check market statusHow to wire a strategy / AI agent

SDKS

Release statusPython SDKJavaScript / TypeScript SDK

Building an AI agent? Start with /llms.txt for the full site index.

Market Structure & Reference

Theme taxonomy

Theme taxonomy — the TWMD-maintained reference tree of investment themes and the industries / concepts each theme groups.

ReferenceSource: TWMD·Plan: free·Cost: 1 credits·GET /v2/datasets/theme-taxonomy

Overview

theme-taxonomy is a reference dataset: one record per theme node describing the classification tree TWMD uses to group securities. Use it to resolve a theme id to its label and parent, or to enumerate the themes available for tagging. It is a curated snapshot, not a time series.

FieldTypeDescription
theme_idstringStable theme identifier.
theme_namestringTheme display name.
parent_idstringParent theme id (null at the root).
levelnumberDepth in the taxonomy tree.
source_rolestringtwmd_theme_taxonomy.

Coverage

Rows2,160
Window2026-05-30 (single-day snapshot)
GradeReference

Example response

A real response from this endpoint. Rows are returned under "envelope.data", 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.

{  "api_version": "v2",  "endpoint": "/v2/datasets/theme-taxonomy",  "request_id": "req_8e048197993f",  "plan_id": "enterprise",  "dataset": "theme_taxonomy",  "query": {    "symbol": "2330",    "theme": null,    "taxonomy_type": null,    "market": null,    "as_of_date": null,    "limit": 50,    "legacy_alias_ticker": null,    "legacy_alias_theme_primary": null  },  "meta": {    "rows_returned": 2,    "mandatory_contract_fields_present": [      "api_version",      "data",      "data_as_of"    ],    "plan": "enterprise",    "row_limit": 100000,    "is_limited": false  },  "envelope": {    "api_version": "v2",    "dataset": "theme_taxonomy",    "dataset_version": "v2.0.0-preview",    "release_version": "v2.2026-05-30.preview",    "release_date": "2026-05-30",    "data_as_of": "2026-05-30",    "request_context": {      "ticker": "2330",      "as_of_date": "2026-05-30",      "family": "discovery_reference",      "field_group_type": "derived",      "dataset_view": "theme_taxonomy_v1",      "supported_sort_by": [        "as_of_date"      ],      "supported_filter_fields": [        "symbol",        "theme",        "taxonomy_type"      ]    },    "data": [      {        "symbol": "2330",        "theme_id": "24",        "theme_name": "24",        "taxonomy_type": "industry",        "market": "TWSE",        "classification_level": "2",        "source_name": "tw_feature_engine",        "source_url": null,        "as_of_date": "2026-05-30",        "source_role": "derived_theme_taxonomy",        "lineage": {          "sources": [            "issuer_profiles",            "ticker_metadata"          ],          "theme_policy": "theme fields only from explicit issuer_classification_map entries; no AI inference",          "mapping_version": "theme_taxonomy_v1",          "taxonomy_version": "v1",          "subindustry_policy": "from issuer_classification_map taxonomy subindustry/sub_industry only"        },        "updated_at": "2026-06-19T05:46:08.775720"      },      {        "symbol": "2330",        "theme_id": "24",        "theme_name": "24",        "taxonomy_type": "sector",        "market": "TWSE",        "classification_level": "1",        "source_name": "tw_feature_engine",        "source_url": null,        "as_of_date": "2026-05-30",        "source_role": "derived_theme_taxonomy",        "lineage": {          "sources": [            "issuer_profiles",            "ticker_metadata"          ],          "theme_policy": "theme fields only from explicit issuer_classification_map entries; no AI inference",          "mapping_version": "theme_taxonomy_v1",          "taxonomy_version": "v1",          "subindustry_policy": "from issuer_classification_map taxonomy subindustry/sub_industry only"        },        "updated_at": "2026-06-19T05:46:08.775720"      }    ],    "quality": {      "freshness_state": "fresh",      "freshness_as_of": "2026-05-30",      "completeness_ratio": 1,      "quality_status": "ready"    },    "lineage": {      "source_role": "canonical",      "selected_source": "issuer_classification_map",      "fallback_chain": [        "issuer_profiles",        "ticker_metadata"      ],      "policy_notes": [        "official/public-first canonical",        "theme_taxonomy uses deterministic mapping only from explicit classification map entries",        "ai/confidence/cluster/rank fields excluded from public contract"      ]    },    "error": {      "error_code": null,      "error_message": null,      "dataset": "theme_taxonomy",      "request_id": "read-api-f235e586efe2",      "blocking_gate": null    }  }}

Captured from the live API on 2026-07-20.

Getting started

  1. Put your key in the X-API-Key header.
  2. Add query parameters (symbol, date range, limit).
  3. Send the request and read the envelope.data array.
curl "https://api.twmarketdata.com/v2/datasets/theme-taxonomy?symbol=2330" \  -H "X-API-Key: sk_live_..."

Filtering

ParameterRequiredTypeDescription
symbolNostringTicker to filter to a single security.
limitNointegerMaximum rows to return.

Python

A first call:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/theme-taxonomy",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["envelope"]["data"])

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/theme-taxonomy",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["envelope"]["data"]:    print(row)

OpenAPI

This endpoint is GET /v2/datasets/theme-taxonomy. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.

Notes & limitations

  • Curated active snapshot / lookup only — not a survivorship-safe time series; theme definitions can be revised, and past tree versions are not reconstructed.

Request & Response

Request

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

Authenticate with the X-API-Key header, using a sk_live_ key issued in the dashboard.

Response

JSON
{  "api_version": "v2",  "endpoint": "/v2/datasets/theme-taxonomy",  "request_id": "req_8e048197993f",  "plan_id": "enterprise",  "dataset": "theme_taxonomy",  "query": {    "symbol": "2330",    "theme": null,    "taxonomy_type": null,    "market": null,    "as_of_date": null,    "limit": 50,    "legacy_alias_ticker": null,    "legacy_alias_theme_primary": null  },  "meta": {    "rows_returned": 2,    "mandatory_contract_fields_present": [      "api_version",      "data",      "data_as_of"    ],    "plan": "enterprise",    "row_limit": 100000,    "is_limited": false  },  "envelope": {    "api_version": "v2",    "dataset": "theme_taxonomy",    "dataset_version": "v2.0.0-preview",    "release_version": "v2.2026-05-30.preview",    "release_date": "2026-05-30",    "data_as_of": "2026-05-30",    "request_context": {      "ticker": "2330",      "as_of_date": "2026-05-30",      "family": "discovery_reference",      "field_group_type": "derived",      "dataset_view": "theme_taxonomy_v1",      "supported_sort_by": [        "as_of_date"      ],      "supported_filter_fields": [        "symbol",        "theme",        "taxonomy_type"      ]    },    "data": [      {        "symbol": "2330",        "theme_id": "24",        "theme_name": "24",        "taxonomy_type": "industry",        "market": "TWSE",        "classification_level": "2",        "source_name": "tw_feature_engine",        "source_url": null,        "as_of_date": "2026-05-30",        "source_role": "derived_theme_taxonomy",        "lineage": {          "sources": [            "issuer_profiles",            "ticker_metadata"          ],          "theme_policy": "theme fields only from explicit issuer_classification_map entries; no AI inference",          "mapping_version": "theme_taxonomy_v1",          "taxonomy_version": "v1",          "subindustry_policy": "from issuer_classification_map taxonomy subindustry/sub_industry only"        },        "updated_at": "2026-06-19T05:46:08.775720"      },      {        "symbol": "2330",        "theme_id": "24",        "theme_name": "24",        "taxonomy_type": "sector",        "market": "TWSE",        "classification_level": "1",        "source_name": "tw_feature_engine",        "source_url": null,        "as_of_date": "2026-05-30",        "source_role": "derived_theme_taxonomy",        "lineage": {          "sources": [            "issuer_profiles",            "ticker_metadata"          ],          "theme_policy": "theme fields only from explicit issuer_classification_map entries; no AI inference",          "mapping_version": "theme_taxonomy_v1",          "taxonomy_version": "v1",          "subindustry_policy": "from issuer_classification_map taxonomy subindustry/sub_industry only"        },        "updated_at": "2026-06-19T05:46:08.775720"      }    ],    "quality": {      "freshness_state": "fresh",      "freshness_as_of": "2026-05-30",      "completeness_ratio": 1,      "quality_status": "ready"    },    "lineage": {      "source_role": "canonical",      "selected_source": "issuer_classification_map",      "fallback_chain": [        "issuer_profiles",        "ticker_metadata"      ],      "policy_notes": [        "official/public-first canonical",        "theme_taxonomy uses deterministic mapping only from explicit classification map entries",        "ai/confidence/cluster/rank fields excluded from public contract"      ]    },    "error": {      "error_code": null,      "error_message": null,      "dataset": "theme_taxonomy",      "request_id": "read-api-f235e586efe2",      "blocking_gate": null    }  }}

Captured from a real call to this endpoint — not written by hand.

This dataset returns its rows under "envelope.data". The envelope differs between datasets, so read this one rather than reusing another page's shape.

The grade badge on this page is a documentation classification, not a response field.