跳轉到內容

行業子板塊層級樹

獲取行業分組的層級子板塊樹,含各節點股票數量、日漲跌幅和年初至今漲跌幅。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[]子板塊列表,結構與當前節點相同(遞迴)