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

Market & Prices

Market value weight

Market value weight

DerivedSource: TWSE·Plan: pro·Cost: 2 credits·GET /v2/datasets/market-value-weight

Market value weight is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/market-value-weight.

Overview

Market value weight — grain: ticker / as_of_date.

FieldTypeDescription
as_of_datestringAs-of date
tickerstringTicker
marketstringMarket
weight_pctnumberWeight in the market cap-weighted index (%)

Example response

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

{  "dataset_id": "market_value_weight",  "request_context": {    "scope": "twse_market_cap_weight_only",    "coverage_type": "derived_from_valuation_market_cap",    "filters": {      "as_of_date": null,      "date_from": null,      "date_to": null,      "ticker": "1231",      "market": null,      "source_family": null,      "limit": 50    },    "min_as_of_date": "2026-05-20",    "max_as_of_date": "2026-07-31"  },  "quality": {    "row_count": 50,    "ticker_count": 1,    "sensitive_fields_exposed": false  },  "lineage": {    "source_families": [      "derived_valuation_market_cap_weight"    ],    "method": "100*market_cap/sum(market_cap) over (as_of_date, market); TWSE only"  },  "error": null,  "data": [    {      "as_of_date": "2026-07-31",      "ticker": "1231",      "market": "TWSE",      "weight_pct": 0.01717869,      "source_family": "derived_valuation_market_cap_weight",      "lineage": {        "method": "100*market_cap/sum(market_cap) over (as_of_date,market)",        "source_table": "valuation_data_items",        "source_field": "market_cap",        "market_scope": "TWSE_only",        "tpex_status": "source_gap_no_market_cap",        "constituents_in_denominator": 1080      }    },    {      "as_of_date": "2026-07-30",      "ticker": "1231",      "market": "TWSE",      "weight_pct": 0.01865348,      "source_family": "derived_valuation_market_cap_weight",      "lineage": {        "method": "100*market_cap/sum(market_cap) over (as_of_date,market)",        "source_table": "valuation_data_items",        "source_field": "market_cap",        "market_scope": "TWSE_only",        "tpex_status": "source_gap_no_market_cap",        "constituents_in_denominator": 1080      }    }  ],  "data_count": 50,  "known_gaps": [    "twse_only",    "tpex_pending_no_market_cap_source",    "weight_relative_to_covered_valuation_universe"  ],  "warnings": [    "not_investment_advice"  ],  "envelope": {    "dataset_id": "market_value_weight",    "scope": "twse_market_cap_weight_only",    "row_count": 50  }}

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

Provenance

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_familylineage

Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.

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 data array.
curl "https://api.twmarketdata.com/v2/datasets/market-value-weight?symbol=2330" \  -H "X-API-Key: sk_live_..."

Filtering

ParameterRequiredTypeDescription
symbolYesstringTicker, e.g. 2330.
start_dateNostring (YYYY-MM-DD)Start of the query range.
end_dateNostring (YYYY-MM-DD)End of the query range.
limitNointegerMaximum rows to return.

Python

A first call:

import requests resp = requests.get(    "https://api.twmarketdata.com/v2/datasets/market-value-weight",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()print(resp.json()["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/market-value-weight",    params={"symbol": "2330"},    headers={"X-API-Key": "sk_live_..."},)resp.raise_for_status()for row in resp.json()["data"]:    print(row)

OpenAPI

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