Skip to Content

Rank Categories

Get the tag category configuration for the popularity leaderboard. second_tags[].key can be passed to rank_list.

CLI
longbridge rank

Parameters

SDK method parameters.

This method takes no parameters.

Request Example

Response

Response Example

json
{
  "code": 0,
  "message": "success",
  "data": {
    "first_tags": [
      {
        "key": "ib_hot",
        "name": "Hotness Rank",
        "second_tags": [
          { "key": "ib_hot_all-us", "name": "US Total Hotness", "market": "US" },
          { "key": "ib_hot_all-hk", "name": "HK Total Hotness", "market": "HK" },
          { "key": "ib_hot_all-cn", "name": "A-share Total Hotness", "market": "CN" }
        ]
      },
      {
        "key": "ib_change",
        "name": "Price Change Rank",
        "second_tags": [
          { "key": "ib_change_top-us", "name": "US Top Gainers", "market": "US" },
          { "key": "ib_change_top-hk", "name": "HK Top Gainers", "market": "HK" }
        ]
      }
    ]
  }
}

Response Status

StatusDescriptionSchema
200SuccessRankCategoriesResponse
400Bad requestNone

Schemas

RankCategoriesResponse

NameTypeRequiredDescription
first_tagsobject[]falseTop-level category list
∟ keystringfalseTop-level category key
∟ namestringfalseTop-level category name
∟ second_tagsobject[]falseSecond-level category list
∟ ∟ keystringfalseSecond-level category key; pass to rank_list as the key parameter
∟ ∟ namestringfalseSecond-level category name
∟ ∟ marketstringfalseAssociated market: US, HK, CN, SG