Skip to Content

Popularity Leaderboard

Get the stock ranking for a given leaderboard tag key. The key comes from rank_categories second_tags[].key, e.g. ib_hot_all-us (US total hotness).

CLI
longbridge rank --key ib_hot_all-us
longbridge rank --key ib_hot_all-hk

Parameters

SDK method parameters.

NameTypeRequiredDescription
keystringYESLeaderboard tag key from rank_categories second_tags[].key
need_articlebooleanNOWhether to return associated articles, default false

Request Example

Response

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "bmp": false,
    "lists": [
      {
        "code": "MU",
        "counter_id": "ST/US/MU",
        "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"
      }
    ]
  }
}

Note: The response contains many additional fields; the above are the main ones.

Response Status

StatusDescriptionSchema
200SuccessRankListResponse
400Bad requestNone

Schemas

RankListResponse

NameTypeRequiredDescription
bmpbooleanfalseWhether the response is a market preview (before open)
listsobject[]falseLeaderboard stock list
∟ codestringfalseTicker code (e.g. MU)
∟ counter_idstringfalseCounter ID (e.g. ST/US/MU)
∟ namestringfalseSecurity name
∟ last_donestringfalseLatest trade price
∟ chgstringfalsePrice change ratio as decimal (e.g. 0.0252 = 2.52%)
∟ changestringfalseAbsolute price change (e.g. 17.200)
∟ inflowstringfalseNet capital inflow (in the market's currency)
∟ market_capstringfalseMarket capitalisation
∟ industrystringfalseIndustry classification
∟ pre_post_pricestringfalsePre/post-market price
∟ pre_post_chgstringfalsePre/post-market price change ratio (decimal)
∟ amplitudestringfalseAmplitude / intraday range ratio (decimal)
∟ five_day_chgstringfalse5-day price change ratio (decimal)
∟ turnover_ratestringfalseTurnover rate (decimal)
∟ volume_ratestringfalseVolume ratio (vs average)
∟ pb_ttmstringfalsePrice-to-book ratio (TTM)

Note: The response contains many additional fields; the above are the main ones.