# 行业子板块层级树

`GET` `/v1/quote/industries/peers`

获取行业分组的层级子板块树，含各节点股票数量、日涨跌幅和年初至今涨跌幅。Counter ID 可从 `industry_rank` 返回结果中获取。

## Parameters

### Query Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `symbol` | string | Yes | 行业标识，如 `IN20245.HK`。 |
| `market` | string | Yes | 市场代码：`US` / `HK` / `CN` / `SG` |

## Request Example

```bash
curl --request GET \
  --url 'https://openapi.longbridge.com/v1/quote/industries/peers?symbol=<symbol>&market=<market>' \
  --header 'Authorization: Bearer <access_token>'
```

## Response

### Response Properties

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `top` | object | No | 顶层行业信息， |
| `chain` | object | No | 行业层级树根节点， |
| `market` | string | No | 市场代码 |
| `symbol` | string | No | 板块标识（根节点上有值，子节点为空字符串）。 |
| `stock_num` | integer | No | 板块内股票数量 |
| `chg` | string | No | 当日涨跌幅（小数，可能为空字符串） |
| `ytd_chg` | string | No | 年初至今涨跌幅（小数，可能为空字符串） |
| `next` | object[] | No | 子板块列表，结构与当前节点相同（递归） |

### Response JSON Example

```json
{
  "code": 0,
  "message": "success",
  "data": {
    "top": {
      "name": "All Industries",
      "market": "US"
    },
    "chain": {
      "name": "Technology",
      "symbol": "IN00258.US",
      "stock_num": 542,
      "chg": "0.0231",
      "ytd_chg": "0.0875",
      "next": [
        {
          "name": "Online Consumer Electronics Retail",
          "symbol": "",
          "stock_num": 4,
          "chg": "0.0268",
          "ytd_chg": "-0.1869",
          "next": []
        }
      ]
    }
  }
}
```
