Fundamental
Authorization
Signed mode: every request is signed with your App Key/Secret. Header set:
| Name | Type | Required | Description |
|---|---|---|---|
Authorization | string · header | Required | The account Access Token from the OpenAPI dashboard — passed as the raw token (no Bearer prefix) and included in the signature calculation. |
X-Api-Key | string · header | Required | Your App Key. |
X-Timestamp | string · header | Required | Request timestamp in seconds (Unix epoch). |
X-Api-Signature | string · header | Required | HMAC-SHA256 signature. Format: HMAC-SHA256 SignedHeaders=authorization;x-api-key;x-timestamp, Signature=. |
Get the industry ranking list by market and indicator. The returned Counter ID can be passed directly to industry_peers to explore the sub-sector hierarchy.
longbridge industry-rank --market US
longbridge industry-rank --market HK --indicator market-cap
Request
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
market | string | Required | Market code: `US` / `HK` / `CN` / `SG` |
indicator | string | Required | Ranking indicator: `leading-gainer` / `today-trend` / `popularity` / `market-cap` / `revenue` / `revenue-growth` / `net-profit` / `net-profit-growth` |
sort_type | string | Required | Sort mode: `single` / `multi` |
limit | integer | Required | Number of results to return, default 20 |
Response
Response properties
| Name | Type | Required | Description |
|---|---|---|---|
items | object[] | Optional | Ranked group list |
└ lists | object[] | Optional | Industry item list |
└ ∟ name | string | Optional | Industry name |
└ ∟ symbol | string | Optional | Industry symbol, usable as `symbol` in `industry_peers` (e.g. `IN20245.HK`). |
└ ∟ chg | string | Optional | Daily change (decimal) |
└ ∟ leading_name | string | Optional | Leading stock name |
└ ∟ leading_ticker | string | Optional | Leading stock ticker |
└ ∟ leading_chg | string | Optional | Leading stock daily change (decimal) |
└ ∟ value_name | string | Optional | Indicator label (may be empty depending on indicator type) |
└ ∟ value_data | string | Optional | Indicator value (may be empty) |
Response JSON example
{
"code": 0,
"message": "success",
"data": {
"items": [
{
"lists": [
{
"name": "Technology",
"symbol": "IN00258.US",
"chg": "0.0231",
"leading_name": "NVIDIA",
"leading_ticker": "NVDA.US",
"leading_chg": "0.0512",
"value_name": "",
"value_data": ""
}
]
}
]
}
}Error code
See the Error Codes page for the full list of error codes.