Market

Popularity Leaderboard

GEThttps://openapi.longbridge.com/v1/quote/market/rank/list

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 stock ranking for a given leaderboard tag key. The key comes from rank_categories second_tags[].key, e.g. hot_all-us (US total hotness).

>_ CLI
longbridge rank --key hot_all-us
longbridge rank --key hot_all-hk

Request

Query parameters

NameTypeRequiredDescription
keystringRequiredLeaderboard tag key from `rank_categories` `second_tags[].key`
need_articlebooleanOptionalWhether to return associated articles, default `false`

Response

Response properties

NameTypeRequiredDescription
bmpbooleanOptionalWhether the response is a market preview (before open)
listsobject[]OptionalLeaderboard stock list
└ codestringOptionalTicker code (e.g. `MU`)
└ symbolstringOptionalSymbol in `CODE.MARKET` format (e.g. `MU.US`)
└ namestringOptionalSecurity name
└ last_donestringOptionalLatest trade price
└ chgstringOptionalPrice change ratio as decimal (e.g. `0.0252` = 2.52%)
└ changestringOptionalAbsolute price change (e.g. `17.200`)
└ inflowstringOptionalNet capital inflow (in the market's currency)
└ market_capstringOptionalMarket capitalisation
└ industrystringOptionalIndustry classification
└ pre_post_pricestringOptionalPre/post-market price
└ pre_post_chgstringOptionalPre/post-market price change ratio (decimal)
└ amplitudestringOptionalAmplitude / intraday range ratio (decimal)
└ five_day_chgstringOptional5-day price change ratio (decimal)
└ turnover_ratestringOptionalTurnover rate (decimal)
└ volume_ratestringOptionalVolume ratio (vs average)
└ pb_ttmstringOptionalPrice-to-book ratio (TTM)

Response JSON example

{
  "code": 0,
  "message": "success",
  "data": {
    "bmp": false,
    "lists": [
      {
        "code": "MU",
        "symbol": "MU.US",
        "name": "Micron Technology",
        "last_done": "698.740",
        "chg": "0.0252",
        "change": "17.200",
        "inflow": "-347041642",
        "market_cap": "787992890796",
        "industry": "Semiconductor Manufacturers",
        "pre_post_price": "726.600",
        "pre_post_chg": "0.0399",
        "amplitude": "0.1082",
        "five_day_chg": "-0.0885",
        "turnover_rate": "0.0550",
        "volume_rate": "1.11",
        "pb_ttm": "32.68"
      }
    ]
  }
}

Error code

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