# Get Top Movers Rank

get_top_movers_rank(market, sort_dir=None, count=10, offset=None, filter_list=None)

  • Description

    Get top movers rank (intraday), returning intraday trading session change rate rankings, supporting HK and US stocks, including latest price, change rate, turnover, turnover rate, P/E ratio, and other data.

  • Parameters

    Parameter Type Description
    market Market Market type (HK/US) (required)
    sort_dir RankSortDir Sort direction, default descending (top gainers)
    count int Return count [1, 200], default 10
    offset int Start position, default 0
    filter_list list[SimpleRankFilter] Filter condition list (multiple conditions are AND-combined)
  • Input Limits

    • filter_list Filter Conditions(SimpleRankFilter):

      Constructor Parameter Description
      indicator_type Filter indicator type (SimpleRankIndicatorType, required)
      interval_min Range minimum (closed interval, for MARKET_CAP/PE)
      interval_max Range maximum (closed interval, for MARKET_CAP/PE)
      price_filter Price filter enum (PriceFilter, required for PRICE type)
  • 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. 'HK.00700')
      name str Stock name
      cur_price float Latest price
      change_ratio float Change rate (%)
      change_amount float Change amount
      turnover float Turnover
      volume int Volume
      turnover_ratio float Turnover rate (%)
      pe_ttm float P/E ratio TTM
      amplitude float Amplitude (%)
      market_cap float Market cap
      volume_ratio float Volume ratio
  • Example

from futu import *

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

ret, data = quote_ctx.get_top_movers_rank(market=Market.US, 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
总数据量: 1794
   security        name  cur_price  change_ratio  change_amount      turnover   volume  turnover_ratio  pe_ttm  amplitude    market_cap  volume_ratio
0    US.QNT  Quantinuum      77.46     13.461257           9.19  4.257190e+08  5582936          175.45  -8.523     225.28  2.020045e+10         1.540
1  US.NJDCY   日本电产(ADR)       3.90      9.859155           0.35  4.051129e+04     9816            0.00  24.074     225.35  1.788243e+10         0.426
1
2
3
4

API Limits

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