Fundamental

Industry Peer Hierarchy

GEThttps://openapi.longbridge.com/v1/quote/industries/peers

Authorization

Signed mode: every request is signed with your App Key/Secret. Header set:

NameTypeRequiredDescription
Authorizationstring · headerRequiredThe account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation.
X-Api-Keystring · headerRequiredYour App Key.
X-Timestampstring · headerRequiredRequest timestamp in seconds (Unix epoch).
X-Api-Signaturestring · headerRequiredHMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=.

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

Request

Query parameters

NameTypeRequiredDescription
symbolstringRequiredIndustry symbol, e.g. `IN20245.HK`.
marketstringRequiredMarket code: `US` / `HK` / `CN` / `SG`

Response

Response properties

NameTypeRequiredDescription
topobjectOptionalTop-level industry info
chainobjectOptionalIndustry hierarchy root node
marketstringOptionalMarket code
symbolstringOptionalSector symbol (present on the root node; empty string on child nodes).
stock_numintegerOptionalNumber of stocks in this sector
chgstringOptionalDaily change (decimal; may be empty string)
ytd_chgstringOptionalYear-to-date change (decimal; may be empty string)
nextobject[]OptionalChild sector list with the same structure (recursive)

Response JSON example

{
  "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": []
        }
      ]
    }
  }
}

Error code

See the Error Codes page for the full list of error codes.