# Get Option Quote

get_option_quote(combo_leg_list)

  • Description

    Get option snapshot quotes from a combo leg list, suitable for multi-leg strategy batch quote queries.

  • Parameters

    Parameter Type Description
    combo_leg_list list Combo leg list
  • Return

    Parameter Type Description
    ret RET_CODE API call result
    data pd.DataFrame When ret == RET_OK, returns option snapshot data
    str When ret != RET_OK, returns error description
    • DataFrame fields:

      Field Type Description
      price float Combo price
      change_val float Change value
      change_rate float Change rate
      volume str Volume
      turnover str Turnover
      high_price str High price
      low_price str Low price
      mid_price str Mid price
      open_price str Open price
      last_close_price float Last close price
      open_interest str Open interest
      premium str Premium
      implied_volatility str Implied volatility
      delta float Delta
      gamma float Gamma
      vega float Vega
      theta float Theta
      rho float Rho
      option_type str Option type
      expire_time str Expiration date
      strike_price str Strike price
      contract_size float Contract size
      contract_multiplier float Contract multiplier
      exercise_type str Exercise type
      days_to_expiry int Days to expiry
      net_open_interest str Net open interest
      contract_value str Contract value
      equal_underlying str Equivalent underlying
      index_option_type str Index option type
      intrinsic_value float Intrinsic value
      time_value float Time value
      breakeven_point list Breakeven points
      dist_to_breakeven list Distance to breakeven
      prob_of_profit float Probability of profit
      seller_roi str Seller ROI
      mark_price float Mark price
      leverage_ratio str Leverage ratio
      effective_gearing str Effective gearing
  • Example

from futu import *

quote_ctx = OpenQuoteContext(host='127.0.0.1', port=11111)
ret, data = quote_ctx.get_option_strategy(code='HK.00700', option_strategy=OptionStrategyType.STRADDLE)
if ret == RET_OK:
    index=0
    print(data['legs'][index])
    ret2,data2 = quote_ctx.get_option_quote(data['legs'][index])
    if ret2 == RET_OK:
        print(data2)
    else:
        print("get_analysis,error:",data2)
else:
    print('error:', data)

quote_ctx.close() # Remember to close the connection to avoid exhausting connection quota
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  • Output
[OptionStrategyLeg(code=HK.TCH260522P330000, action=BUY, quantity=1.0), OptionStrategyLeg(code=HK.TCH260522C330000, action=BUY, quantity=1.0)]
    price  change_val  change_rate volume turnover high_price low_price mid_price open_price  last_close_price open_interest premium implied_volatility     delta     gamma      vega     theta       rho option_type expire_time strike_price  contract_size  contract_multiplier exercise_type  days_to_expiry net_open_interest contract_value equal_underlying index_option_type  intrinsic_value  time_value   breakeven_point             dist_to_breakeven  prob_of_profit seller_roi  mark_price leverage_ratio effective_gearing
0  131.65         0.0          0.0    N/A      N/A        N/A       N/A       N/A        N/A            131.65           N/A     N/A                N/A  0.974369  0.000797  0.019825 -0.785757  0.016246         N/A  2026-05-22          N/A          100.0                100.0           N/A               2               N/A            N/A              N/A               N/A            125.2        6.45  [199.56, 460.44]  [255.64, -5.240000000000009]        0.315418        N/A       130.4            N/A               N/A
1
2
3

API Restrictions

  • Maximum 120 requests per 30 seconds.