# Get US Pre-Market Rank

get_us_pre_market_rank(sort_dir=None, count=10, offset=None, filter_list=None)

  • Description

    Get US pre-market rank, returning pre-market trading session change rate rankings, including pre-market price, change rate, turnover, volume, and other data.

  • Parameters

    Parameter Type Description
    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):

      Construct filter conditions via 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. 'US.AAPL')
      name str Stock name
      pre_market_price float Pre-market price
      pre_market_change_ratio float Pre-market change rate (%)
      pre_market_change_amount float Pre-market change amount
      pre_market_turnover float Pre-market turnover
      pre_market_volume int Pre-market volume
      close_price float Close price (previous trading day)
      change_ratio float Intraday change rate (%)
      change_amount float Intraday change amount
  • Example

from futu import *

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

ret, data = quote_ctx.get_us_pre_market_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
Total count: 17728
  security                    name  pre_market_price  pre_market_change_ratio  pre_market_change_amount  pre_market_turnover  pre_market_volume  close_price  change_ratio  change_amount
0  US.ATLN  Atlantic International              1.18                  168.303                      0.74         1.219515e+08          136776297         1.33    202.961276          0.891
1  US.BOLD           Boundless Bio              2.40                   71.428                      1.00         6.180064e+07           25082585         2.60     85.714286          1.200
1
2
3
4

API Limits

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