# Option Contract Rank

get_option_rank(option_market, sort_type, count=None, trading_date=None, sort_direction=None, page=None, filter_list=None)

  • Description

    Get option contract ranking list, supports sorting by volume, open interest, OI increment, OI decrement, IV, change rate, and other dimensions.

  • Parameters

    Parameter Type Description
    option_market OptionMarket Option market type
    sort_type OptionRankType Sort type
    count int Return count
    trading_date str Trading date
    sort_direction int Sort direction
    page str Pagination cursor
    filter_list list[OptionRankFilter] Filter conditions list
  • Returns

    Returns a 4-tuple (ret, data, next_page, all_count)

    Parameter Type Description
    ret RET_CODE Interface call result
    data pandas.DataFrame When ret == RET_OK, returns ranking data
    data str When ret != RET_OK, returns error description
    next_page str Pagination cursor for next page, None means no more data
    all_count int Total count matching filter conditions
    • data DataFrame fields:

      Field Type Description
      code str Option contract code
      name str Option name
      option_type str Option type
      oi_increment int OI increment (>=0)
      oi_decrement int OI decrement (>=0)
      oi_market_cap_increment float OI market cap increment (>=0)
      oi_market_cap_decrement float OI market cap decrement (>=0)
      volume int Volume
      turnover float Turnover
      open_interest int Open interest
      open_interest_market_cap float Open interest market cap
      iv float Implied volatility (percentage)
      option_price float Option latest price
      change_ratio float Price change ratio (decimal)
      mid_price float Mid price
      bid_price float Bid price
      bid_volume int Bid volume
      ask_price float Ask price
      ask_volume int Ask volume
      delta float Delta
      gamma float Gamma
      theta float Theta
      vega float Vega
      rho float Rho
      trading_date str Trading date of ranking data
      trading_timestamp float Trading date timestamp (Unix seconds)
  • Example

from futu import *

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

ret, data, next_page, all_count = quote_ctx.get_option_rank(
    OptionMarket.US_SECURITY,
    OptionRankType.VOLUME,
    count=5
)
if ret == RET_OK:
    print(data)
    print('all_count:', all_count)
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  • Output
                  code                name option_type  oi_increment oi_decrement  oi_market_cap_increment oi_market_cap_decrement  volume    turnover  open_interest  open_interest_market_cap       iv  option_price  change_ratio  mid_price  bid_price  bid_volume  ask_price  ask_volume    delta    gamma      theta     vega  rho trading_date  trading_timestamp
0  US.SPY260612C742000  SPY 260612 742.00C        CALL          1816          N/A                 105328.0                     N/A  730160  91928623.0           7449                  432042.0  146.507          0.58       -67.688      0.580       0.56          28       0.60           1  0.43674  0.27447 -455.46028  0.00385  0.0   2026-06-12       1.781237e+09
1  US.SPY260612C745000  SPY 260612 745.00C        CALL          5416          N/A                   5416.0                     N/A  617981  44479304.0          17013                   17013.0   87.067          0.01       -98.958      0.015       0.01         708       0.02         500  0.02438  0.03501  -18.52310  0.00107  0.0   2026-06-12       1.781237e+09
2  US.SPY260612C743000  SPY 260612 743.00C        CALL          5438          N/A                  48942.0                     N/A  606769  64419534.0           7426                   66834.0   59.082          0.09       -93.898      0.095       0.09         208       0.10         118  0.13412  0.19487  -50.92453  0.00405  0.0   2026-06-12       1.781237e+09
3  US.SPY260612P740000  SPY 260612 740.00P         PUT          1223          N/A                   1223.0                     N/A  566915  69291991.0          15291                   15291.0   53.083          0.01       -99.790      0.015       0.01         447       0.02         407 -0.03761  0.08224  -16.47701  0.00153  0.0   2026-06-12       1.781237e+09
4  US.SPY260612C741000  SPY 260612 741.00C        CALL          2924          N/A                 423980.0                     N/A  506505  88981079.0           6229                  903205.0  224.448          1.45       -33.179      1.520       1.46          12       1.58          23  0.63754  0.17055 -662.49947  0.00367  0.0   2026-06-12       1.781237e+09
all_count: 1955829
1
2
3
4
5
6
7

Rate Limit

  • Maximum 60 requests per 30 seconds for the option contract rank interface (for paginated interfaces, only the first call counts)