Industry Peer Hierarchy
Get the hierarchical sub-sector tree for an industry group, including stock count, daily change, and YTD change at each node. Counter IDs come from industry_rank.
SDK Links
Parameters
SDK method parameters.
| Name | Type | Required | Description |
|---|---|---|---|
| counter_id | string | YES | Industry unique identifier (BK/MARKET/ID format) from industry_rank |
| market | string | YES | Market code: US / HK / CN / SG |
Request Example
Response
Response Example
json
{
"code": 0,
"message": "success",
"data": {
"top": {"name": "All Industries", "market": "US"},
"chain": {
"name": "Technology",
"counter_id": "BK/US/IN00258",
"stock_num": 542,
"chg": "0.0231",
"ytd_chg": "0.0875",
"next": [
{
"name": "在线消费电子产品零售",
"counter_id": "",
"stock_num": 4,
"chg": "0.0268",
"ytd_chg": "-0.1869",
"next": []
}
]
}
}
}Response Status
| Status | Description | Schema |
|---|---|---|
| 200 | Success | IndustryPeersResponse |
| 400 | Bad request | None |
Schemas
IndustryPeersResponse
| Name | Type | Required | Description |
|---|---|---|---|
| top | object | false | Top-level industry info, see IndustryPeersTop |
| chain | object | false | Industry hierarchy root node, see IndustryPeerNode |
IndustryPeersTop
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | false | Top-level industry name |
| market | string | false | Market code |
IndustryPeerNode
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | false | Sector name |
| counter_id | string | false | Sector counter ID (present on root node; empty string on child nodes) |
| stock_num | integer | false | Number of stocks in this sector |
| chg | string | false | Daily change (decimal; may be empty string) |
| ytd_chg | string | false | Year-to-date change (decimal; may be empty string) |
| next | object[] | false | Child sector list with the same structure (recursive) |