Building an AI agent? Start with /llms.txt for the full site index.
Market Structure & Reference
Broker-branch reference — the lookup table mapping each broker branch code to its brokerage and branch identity.
← Broker-branch reference overview
GET /v2/datasets/broker-branch-referenceBroker-branch reference is a Taiwan market dataset sourced from TWSE, served by TW Market Data as GET /v2/datasets/broker-branch-reference.
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.
| Field | Type | Description |
|---|---|---|
parent_broker_code | string | |
parent_broker_name | string | |
branch_code | string | Broker branch code. |
branch_name | string | Branch name. |
market | string | |
address | string |
| Rows | ~814 |
| Window | 2026-08-23 – 2026-08-23 |
| Grade | Reference |
| Measured | 2026-09-01from the dataset registry |
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-08-06.preview",
"release_date": "2026-08-06",
"data_as_of": "2026-08-06",
"request_context": {
"ticker": "1020",
"as_of_date": "2026-08-06",
"family": "discovery_reference",
"field_group_type": "canonical",
"dataset_view": "broker_branch_reference_v1",
"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": 53,
"branch_count": 814,
"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": {
"emitter": "build_broker_branch_refresh_candidates",
"open_date": "830923",
"branch_code": "601T",
"broker_code": "<Chinese value - see the zh page>",
"source_date": "1150804",
"source_role": "official_twse_broker_branch_reference",
"source_family": "official_twse_broker_branch_reference",
"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": [
"broker_id_unresolved_fallback_key"
]
},
{
"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": {
"emitter": "build_broker_branch_refresh_candidates",
"open_date": "1080102",
"branch_code": "601d",
"broker_code": "<Chinese value - see the zh page>",
"source_date": "1150804",
"source_role": "official_twse_broker_branch_reference",
"source_family": "official_twse_broker_branch_reference",
"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": [
"broker_id_unresolved_fallback_key"
]
}
],
"quality": {
"freshness_state": "fresh",
"freshness_as_of": "2026-08-06",
"completeness_ratio": 1,
"quality_status": "ready"
},
"lineage": {
"source_role": "canonical",
"selected_source": "broker_branch_reference",
"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-20260806",
"blocking_gate": null
},
"dataset_id": "broker_branch_reference",
"data_count": 50,
"known_gaps": [
"address_missing",
"broker_id_unresolved_fallback_key",
"not_investment_advice"
],
"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.
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_providersource_rolesource_familysource_lineagedata_gapsPart of the data in this service is obtained from the Government Open Data Platform (data.gov.tw) and used under the Open Government Data License, version 1.0. Providing agencies: Taiwan Stock Exchange, Taipei Exchange, Taiwan Futures Exchange, Taiwan Depository & Clearing Corporation, National Development Council, Central Bank of the Republic of China (Taiwan), Department of Statistics of the Ministry of Economic Affairs, and Customs Administration of the Ministry of Finance. The value-added processing, derived calculations and presentation in this service are the responsibility of TWMD and are not associated with the providing agencies.
TW Market Data. (n.d.). Broker-branch reference [Data set]. TW Market Data. Retrieved 2026-09-05, from https://twmarketdata.com/en/docs/api/structure-reference/broker-branch-reference
The version is the dataset's own as_of, not the date this page was built. Where we have no as_of the field is left out rather than filled in. Check a signature
Datasets that join with this one. The key each pair aligns on is shown, so you can plan a multi-table query without guessing.
Joins on market
Joins on market
Joins on market
Joins on market
Joins on market
Joins on market
curl "https://api.twmarketdata.com/v2/datasets/broker-branch-reference?market=TWSE" \
-H "X-API-Key: sk_live_..."| Parameter | Required | Type | Description |
|---|---|---|---|
parent_broker_code | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
branch_code | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
parent_broker_name | No | string | Declared by the endpoint in envelope.request_context.supported_filter_fields. |
import requests
resp = requests.get(
"https://api.twmarketdata.com/v2/datasets/broker-branch-reference",
params={"market": "TWSE"},
headers={"X-API-Key": "sk_live_..."},
)
resp.raise_for_status()
print(resp.json()["data"])This endpoint is GET /v2/datasets/broker-branch-reference. The full machine-readable schema (parameters, security, response envelope) lives in the OpenAPI spec.