跳轉到內容

行業子板塊層級樹

獲取行業分組的層級子板塊樹,含各節點股票數量、日漲跌幅和年初至今漲跌幅。Counter ID 可從 industry_rank 返回結果中獲取。

Parameters ​

SDK 方法參數。

NameTypeRequiredDescription
counter_idstring是行業唯一標識(BK/市場/ID 格式),來源於 industry_rank
marketstring是市場代碼: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 ​

StatusDescriptionSchema
200成功IndustryPeersResponse
400請求錯誤None

Schemas ​

IndustryPeersResponse ​

NameTypeRequiredDescription
topobject否頂層行業資訊,見 IndustryPeersTop
chainobject否行業層級樹根節點,見 IndustryPeerNode

IndustryPeersTop ​

NameTypeRequiredDescription
namestring否頂層行業名稱
marketstring否市場代碼

IndustryPeerNode ​

NameTypeRequiredDescription
namestring否板塊名稱
counter_idstring否板塊唯一標識(根節點有值,子節點為空字串)
stock_numinteger否板塊內股票數量
chgstring否當日漲跌幅(小數,可能為空字串)
ytd_chgstring否年初至今漲跌幅(小數,可能為空字串)
nextobject[]否子板塊列表,結構與當前節點相同(遞迴)