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

Broker-branch reference

Broker-branch reference — the lookup table mapping each broker branch code to its brokerage and branch identity.

ReferenceSource: TWSE·Plan: free·Cost: 4 credits·GET /v2/datasets/broker-branch-reference

Overview

broker-branch-reference is a reference dataset: one active record per broker branch, used to resolve a branch code appearing in broker-trading data into a readable brokerage and branch name. It is a lookup surface, not a time series of trades.

FieldTypeDescription
branch_codestringBroker branch code.
broker_codestringParent brokerage code.
broker_namestringParent brokerage name.
branch_namestringBranch name.
source_rolestringofficial_twse_broker_branch.

Coverage

Rows811
WindowReference data, no time series
GradeReference

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.

{  "api_version": "v2",  "dataset": "broker_branch_reference",  "dataset_version": "v2.0.0-preview",  "release_version": "v2.2026-07-20.preview",  "release_date": "2026-07-20",  "data_as_of": "2026-07-20",  "request_context": {    "ticker": "1020",    "as_of_date": "2026-07-20",    "family": "discovery_reference",    "field_group_type": "canonical",    "dataset_view": "broker_branch_reference_v1",    "source_table": "broker_branch_reference_items",    "scope": "broker_branch_reference_only",    "coverage_type": "current_reference_snapshot",    "supported_sort_by": [      "parent_broker_code",      "branch_code"    ],    "supported_filter_fields": [      "parent_broker_code",      "branch_code",      "parent_broker_name"    ],    "parent_broker_count": 52,    "branch_count": 811,    "market_filter": "TWSE",    "source_provider_filter": null,    "source_role_filter": null,    "source_family_filter": null  },  "data": [    {      "parent_broker_code": "<Chinese value - see the zh page>",      "parent_broker_name": "<Chinese value - see the zh page>",      "branch_code": "601T",      "branch_name": "<Chinese value - see the zh page>",      "market": "TWSE",      "address": "<Chinese value - see the zh page>",      "source_provider": "twse_official",      "source_role": "official_twse_broker_branch_reference",      "source_family": "official_twse_broker_branch_reference",      "source_lineage": {        "open_date": "830923",        "branch_code": "601T",        "broker_code": "<Chinese value - see the zh page>",        "source_date": "1150608",        "source_role": "official_twse_broker_branch_reference",        "source_family": "official_twse_broker_branch_reference",        "source_tables": {          "broker_list": "brokerService/brokerList",          "sec_reg_data": "brokerService/secRegData",          "branch_reference": "opendata/OpenData_BRK02"        },        "raw_branch_name": "<Chinese value - see the zh page>",        "source_provider": "twse_official",        "broker_id_source": "derived_from_branch_name",        "source_canonical": "official_twse_broker_branch_reference",        "branch_name_guess": "<Chinese value - see the zh page>",        "broker_name_guess": "<Chinese value - see the zh page>"      },      "data_gaps": []    },    {      "parent_broker_code": "<Chinese value - see the zh page>",      "parent_broker_name": "<Chinese value - see the zh page>",      "branch_code": "601d",      "branch_name": "<Chinese value - see the zh page>",      "market": "TWSE",      "address": "<Chinese value - see the zh page>",      "source_provider": "twse_official",      "source_role": "official_twse_broker_branch_reference",      "source_family": "official_twse_broker_branch_reference",      "source_lineage": {        "open_date": "1080102",        "branch_code": "601d",        "broker_code": "<Chinese value - see the zh page>",        "source_date": "1150608",        "source_role": "official_twse_broker_branch_reference",        "source_family": "official_twse_broker_branch_reference",        "source_tables": {          "broker_list": "brokerService/brokerList",          "sec_reg_data": "brokerService/secRegData",          "branch_reference": "opendata/OpenData_BRK02"        },        "raw_branch_name": "<Chinese value - see the zh page>",        "source_provider": "twse_official",        "broker_id_source": "derived_from_branch_name",        "source_canonical": "official_twse_broker_branch_reference",        "branch_name_guess": "<Chinese value - see the zh page>",        "broker_name_guess": "<Chinese value - see the zh page>"      },      "data_gaps": []    }  ],  "quality": {    "freshness_state": "fresh",    "freshness_as_of": "2026-07-20",    "completeness_ratio": 1,    "quality_status": "ready"  },  "lineage": {    "source_role": "canonical",    "selected_source": "broker_branch_reference_items",    "fallback_chain": [      "brokerService/brokerList",      "brokerService/secRegData",      "opendata/OpenData_BRK02"    ],    "policy_notes": [      "reference_only",      "not_investment_advice",      "not_trading_activity_coverage"    ]  },  "error": {    "error_code": null,    "error_message": null,    "dataset": "broker_branch_reference",    "request_id": "read-api-20260720",    "blocking_gate": null  },  "dataset_id": "broker_branch_reference",  "data_count": 50,  "known_gaps": [    "address_missing",    "not_investment_advice",    "not_trading_activity_coverage"  ],  "warnings": [    "not_investment_advice",    "reference_only",    "not_trading_activity_coverage"  ]}

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

Chinese data values are shown as a marker here so this page stays in English; the /zh page shows them verbatim.

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/broker-branch-reference?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/broker-branch-reference",    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/broker-branch-reference",    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/broker-branch-reference. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.

Notes & limitations

  • Active snapshot / lookup only — not a survivorship-safe time series; closed or renamed branches from a past date are not reconstructed.

Request & Response

Request

curl "https://api.twmarketdata.com/v2/datasets/broker-branch-reference?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",  "dataset": "broker_branch_reference",  "dataset_version": "v2.0.0-preview",  "release_version": "v2.2026-07-20.preview",  "release_date": "2026-07-20",  "data_as_of": "2026-07-20",  "request_context": {    "ticker": "1020",    "as_of_date": "2026-07-20",    "family": "discovery_reference",    "field_group_type": "canonical",    "dataset_view": "broker_branch_reference_v1",    "source_table": "broker_branch_reference_items",    "scope": "broker_branch_reference_only",    "coverage_type": "current_reference_snapshot",    "supported_sort_by": [      "parent_broker_code",      "branch_code"    ],    "supported_filter_fields": [      "parent_broker_code",      "branch_code",      "parent_broker_name"    ],    "parent_broker_count": 52,    "branch_count": 811,    "market_filter": "TWSE",    "source_provider_filter": null,    "source_role_filter": null,    "source_family_filter": null  },  "data": [    {      "parent_broker_code": "<Chinese value - see the zh page>",      "parent_broker_name": "<Chinese value - see the zh page>",      "branch_code": "601T",      "branch_name": "<Chinese value - see the zh page>",      "market": "TWSE",      "address": "<Chinese value - see the zh page>",      "source_provider": "twse_official",      "source_role": "official_twse_broker_branch_reference",      "source_family": "official_twse_broker_branch_reference",      "source_lineage": {        "open_date": "830923",        "branch_code": "601T",        "broker_code": "<Chinese value - see the zh page>",        "source_date": "1150608",        "source_role": "official_twse_broker_branch_reference",        "source_family": "official_twse_broker_branch_reference",        "source_tables": {          "broker_list": "brokerService/brokerList",          "sec_reg_data": "brokerService/secRegData",          "branch_reference": "opendata/OpenData_BRK02"        },        "raw_branch_name": "<Chinese value - see the zh page>",        "source_provider": "twse_official",        "broker_id_source": "derived_from_branch_name",        "source_canonical": "official_twse_broker_branch_reference",        "branch_name_guess": "<Chinese value - see the zh page>",        "broker_name_guess": "<Chinese value - see the zh page>"      },      "data_gaps": []    },    {      "parent_broker_code": "<Chinese value - see the zh page>",      "parent_broker_name": "<Chinese value - see the zh page>",      "branch_code": "601d",      "branch_name": "<Chinese value - see the zh page>",      "market": "TWSE",      "address": "<Chinese value - see the zh page>",      "source_provider": "twse_official",      "source_role": "official_twse_broker_branch_reference",      "source_family": "official_twse_broker_branch_reference",      "source_lineage": {        "open_date": "1080102",        "branch_code": "601d",        "broker_code": "<Chinese value - see the zh page>",        "source_date": "1150608",        "source_role": "official_twse_broker_branch_reference",        "source_family": "official_twse_broker_branch_reference",        "source_tables": {          "broker_list": "brokerService/brokerList",          "sec_reg_data": "brokerService/secRegData",          "branch_reference": "opendata/OpenData_BRK02"        },        "raw_branch_name": "<Chinese value - see the zh page>",        "source_provider": "twse_official",        "broker_id_source": "derived_from_branch_name",        "source_canonical": "official_twse_broker_branch_reference",        "branch_name_guess": "<Chinese value - see the zh page>",        "broker_name_guess": "<Chinese value - see the zh page>"      },      "data_gaps": []    }  ],  "quality": {    "freshness_state": "fresh",    "freshness_as_of": "2026-07-20",    "completeness_ratio": 1,    "quality_status": "ready"  },  "lineage": {    "source_role": "canonical",    "selected_source": "broker_branch_reference_items",    "fallback_chain": [      "brokerService/brokerList",      "brokerService/secRegData",      "opendata/OpenData_BRK02"    ],    "policy_notes": [      "reference_only",      "not_investment_advice",      "not_trading_activity_coverage"    ]  },  "error": {    "error_code": null,    "error_message": null,    "dataset": "broker_branch_reference",    "request_id": "read-api-20260720",    "blocking_gate": null  },  "dataset_id": "broker_branch_reference",  "data_count": 50,  "known_gaps": [    "address_missing",    "not_investment_advice",    "not_trading_activity_coverage"  ],  "warnings": [    "not_investment_advice",    "reference_only",    "not_trading_activity_coverage"  ]}

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

This dataset returns its rows under "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.