# Get Option Event Alert

get_option_event_alert(count=200, page=None)

  • Description

    Query the list of configured option unusual activity alerts, with pagination support.

  • Parameters

    Parameter Type Description
    count int Page size
    page str Pagination marker
  • Returns

    Parameter Type Description
    ret RET_CODE Interface call result
    data dict When ret == RET_OK, returns alert data
    str When ret != RET_OK, returns error description
    • data dictionary contains:

      Field Type Description
      alert_list pandas.DataFrame Alert settings list
      next_page str Next page marker (empty string means no more pages)
      all_count int Total alert count
    • alert_list DataFrame columns:

      Field Type Description
      key int Alert unique identifier
      enable bool Alert switch
      option_market str Market category (OptionMarket enum value)
      watchlist_group_name str Watchlist group name
      underlying str Specified underlying code
      option_type str Option type (CALL/PUT)
      side_type_list list Trade direction list (EventTickerType enum values)
      order_type_list list Order type list (AlertOrderType enum values)
      market_cap_range_min float Underlying market cap lower bound
      market_cap_range_max float Underlying market cap upper bound
      market_cap_min_inclusive bool Whether market cap lower bound is inclusive
      market_cap_max_inclusive bool Whether market cap upper bound is inclusive
      expiry_days_range_min float Days to expiration lower bound
      expiry_days_range_max float Days to expiration upper bound
      expiry_days_min_inclusive bool Whether days to expiration lower bound is inclusive
      expiry_days_max_inclusive bool Whether days to expiration upper bound is inclusive
      price_range_min float Event fill price lower bound
      price_range_max float Event fill price upper bound
      price_min_inclusive bool Whether fill price lower bound is inclusive
      price_max_inclusive bool Whether fill price upper bound is inclusive
      size_range_min float Event volume lower bound (contracts)
      size_range_max float Event volume upper bound (contracts)
      size_min_inclusive bool Whether volume lower bound is inclusive
      size_max_inclusive bool Whether volume upper bound is inclusive
      premium_range_min float Event turnover lower bound
      premium_range_max float Event turnover upper bound
      premium_min_inclusive bool Whether turnover lower bound is inclusive
      premium_max_inclusive bool Whether turnover upper bound is inclusive
      iv_range_min float Implied volatility lower bound (%)
      iv_range_max float Implied volatility upper bound (%)
      iv_min_inclusive bool Whether IV lower bound is inclusive
      iv_max_inclusive bool Whether IV upper bound is inclusive
      earnings_date_begin str Earnings date filter start date (yyyy-MM-dd)
      earnings_date_end str Earnings date filter end date (yyyy-MM-dd)
      note str Note
  • Example

from futu import *

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

ret, data = quote_ctx.get_option_event_alert()
if ret == RET_OK:
    print(data['alert_list'])
    print('all_count:', data['all_count'])
else:
    print('error:', data)

quote_ctx.close()
1
2
3
4
5
6
7
8
9
10
11
12
  • Output
     key  enable option_market watchlist_group_name underlying option_type side_type_list order_type_list  market_cap_range_min  market_cap_range_max market_cap_min_inclusive market_cap_max_inclusive  expiry_days_range_min  expiry_days_range_max expiry_days_min_inclusive expiry_days_max_inclusive  price_range_min  price_range_max price_min_inclusive price_max_inclusive  size_range_min  size_range_max size_min_inclusive size_max_inclusive  premium_range_min  premium_range_max premium_min_inclusive premium_max_inclusive  iv_range_min  iv_range_max iv_min_inclusive iv_max_inclusive earnings_date_begin earnings_date_end  note
0  14743   False   US_SECURITY                  N/A        N/A        CALL            N/A         [SWEEP]                   N/A                   N/A                     N/A                      N/A                    N/A                    N/A                      N/A                       N/A              N/A              N/A                N/A                N/A           100.0             N/A              True               N/A                N/A                N/A                  N/A                   N/A           N/A           N/A             N/A             N/A                 N/A               N/A  test
all_count: 1
1
2
3

Rate Limit

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