# Get Short Selling Rank

get_short_selling_rank(market=None, sort_field=None, sort_dir=None, count=10, offset=None, plate_list=None)

  • Description

    Get short selling rank, returning US/HK stock short selling data rankings, supporting 14 sorting dimensions and industry sector filtering, including short selling volume, ratio, short position, days to cover, and other data.

  • Parameters

    Parameter Type Description
    market Market Market type (HK/US), default US
    sort_field ShortSellingSortField Sort field, default short selling change
    sort_dir RankSortDir Sort direction, default descending
    count int Return count [1, 35], default 10
    offset int Start position, default 0
    plate_list list[str] Industry sector code list (e.g. ['US.BK2024']), empty=all
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns (all_count, DataFrame) tuple
    str When ret != RET_OK, returns error description
    • Data format:
      Field Type Description
      security str Stock code (e.g. 'US.GME')
      name str Stock name
      close_price float Close price
      change_ratio float Change rate (%)
      change_ratio_5d float 5-day change rate (%)
      change_ratio_10d float 10-day change rate (%)
      volume int Volume
      short_number int Short selling volume
      short_number_change int Short selling change
      short_ratio float Short selling ratio (%)
      short_ratio_change float Short selling ratio change (%)
      short_position_volume int Short position volume
      short_position_ratio float Short position ratio (%)
      days_to_cover float Days to cover
      week_avg_short_number int Weekly average daily short volume
      week_avg_short_ratio float Weekly average daily short ratio (%)
      month_avg_short_number int Monthly average daily short volume
      month_avg_short_ratio float Monthly average daily short ratio (%)
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)

ret, data = quote_ctx.get_short_selling_rank(count=2)
if ret == RET_OK:
    all_count, df = data
    print(f'Total count: {all_count}')
    print(df)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
  • Output
总数据量: 0
  security           name  close_price  change_ratio  change_ratio_5d  change_ratio_10d     volume  short_number  short_number_change  short_ratio  short_ratio_change  short_position_volume  short_position_ratio  days_to_cover  week_avg_short_number  week_avg_short_ratio  month_avg_short_number  month_avg_short_ratio
0  US.SKYQ     Sky Quarry       1.9000         62.39            45.03              4.39  221413731      20302431             20226903         9.16            26780.66                 327119                  6.82            1.0                4111613                  9.19                 1136188                   8.26
1  US.TNON  Tenon Medical       0.6215         77.57             0.72              2.89  271138156      15289764             15273389         5.63            93272.60                 149174                  1.28            2.9                3063337                  5.01                  772705                   5.04
1
2
3
4

API Limits

  • Maximum 60 requests within 30 seconds
  • Only the first page of paginated requests counts toward rate limiting