Skip to main content

Module subscription_plan

Module subscription_plan 

Source
Expand description

Backward-compatible QOT subscription planning facade.

v1.5.0 moves public subscription constants, DTOs, market routing, and option/session normalization to futu-core. Keep this module as a thin compatibility shell for older internal call sites.

Structs§

EmptyDesiredMarket
Lv2OrderGroupPlan
SecurityWithOpts
SubBitOptions
SubscribeOptionsPlan

Enums§

OrderBookWireProfile
SubscribePlanError
SubscriptionWireProfile

Constants§

BACKEND_MARKET_HK_OPTION
BACKEND_MARKET_US_OPTION
JP_LV2_ORDER_STOCK
JP_LV2_ORDER_STOCK_FULL
LV2_ORDER_US_FUTURE
SECURITY_TYPE_DRVT
SECURITY_TYPE_FUTURE
SESSION_ALL
SESSION_ETH
SESSION_NONE
SESSION_OVERNIGHT
SESSION_RTH
SG_LV2_ORDER_STOCK
SG_LV2_ORDER_STOCK_ODD_LOT
SUB_TYPE_BASIC
SUB_TYPE_BROKER
SUB_TYPE_KL_1MIN
SUB_TYPE_KL_3MIN
SUB_TYPE_KL_5MIN
SUB_TYPE_KL_10MIN
SUB_TYPE_KL_15MIN
SUB_TYPE_KL_30MIN
SUB_TYPE_KL_60MIN
SUB_TYPE_KL_120MIN
SUB_TYPE_KL_180MIN
SUB_TYPE_KL_240MIN
SUB_TYPE_KL_DAY
SUB_TYPE_KL_MONTH
SUB_TYPE_KL_QUARTER
SUB_TYPE_KL_WEEK
SUB_TYPE_KL_YEAR
SUB_TYPE_NONE
SUB_TYPE_ORDER_BOOK
SUB_TYPE_ORDER_BOOK_ODD
SUB_TYPE_RT
SUB_TYPE_TICKER
US_LV2_ORDER_ARCA
US_LV2_ORDER_NASDAQ_TV
US_LV2_ORDER_OVERNIGHT
VALID_QOT_SUB_TYPES

Functions§

backend_desired_key_for_sec_key
backend_subscribe_market_for_security
canonical_public_qot_market
empty_desired_market_for_sub
ftapi_market_to_quote_mkt
is_depth_sub_type
is_kl_sub_type
is_valid_qot_market
is_valid_sub_type
kl_type_for_sub_type
legacy_trd_market_to_qot_market
Explicit legacy TrdMarket compatibility mapping. This helper must never be used for a public QotMarket field because both namespaces assign value 2 to different markets (US versus HK_Future).
public_market_from_sec_key
unsupported_option_sub_type_name