Skip to Content

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.

CLI
longbridge industry-peers BK/US/IN00258
longbridge industry-peers BK/HK/IN20337

Parameters

SDK method parameters.

NameTypeRequiredDescription
counter_idstringYESIndustry unique identifier (BK/MARKET/ID format) from industry_rank
marketstringYESMarket 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

StatusDescriptionSchema
200SuccessIndustryPeersResponse
400Bad requestNone

Schemas

IndustryPeersResponse

NameTypeRequiredDescription
topobjectfalseTop-level industry info, see IndustryPeersTop
chainobjectfalseIndustry hierarchy root node, see IndustryPeerNode

IndustryPeersTop

NameTypeRequiredDescription
namestringfalseTop-level industry name
marketstringfalseMarket code

IndustryPeerNode

NameTypeRequiredDescription
namestringfalseSector name
counter_idstringfalseSector counter ID (present on root node; empty string on child nodes)
stock_numintegerfalseNumber of stocks in this sector
chgstringfalseDaily change (decimal; may be empty string)
ytd_chgstringfalseYear-to-date change (decimal; may be empty string)
nextobject[]falseChild sector list with the same structure (recursive)