行业子板块层级树
获取行业分组的层级子板块树,含各节点股票数量、日涨跌幅和年初至今涨跌幅。Counter ID 可从 industry_rank 返回结果中获取。
SDK Links
Parameters
SDK 方法参数。
| Name | Type | Required | Description |
|---|---|---|---|
| counter_id | string | 是 | 行业唯一标识(BK/市场/ID 格式),来源于 industry_rank |
| market | string | 是 | 市场代码: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 | 成功 | IndustryPeersResponse |
| 400 | 请求错误 | None |
Schemas
IndustryPeersResponse
| Name | Type | Required | Description |
|---|---|---|---|
| top | object | 否 | 顶层行业信息,见 IndustryPeersTop |
| chain | object | 否 | 行业层级树根节点,见 IndustryPeerNode |
IndustryPeersTop
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | 否 | 顶层行业名称 |
| market | string | 否 | 市场代码 |
IndustryPeerNode
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | 否 | 板块名称 |
| counter_id | string | 否 | 板块唯一标识(根节点有值,子节点为空字符串) |
| stock_num | integer | 否 | 板块内股票数量 |
| chg | string | 否 | 当日涨跌幅(小数,可能为空字符串) |
| ytd_chg | string | 否 | 年初至今涨跌幅(小数,可能为空字符串) |
| next | object[] | 否 | 子板块列表,结构与当前节点相同(递归) |