Skip to main content

Module subscription_plan

Module subscription_plan 

Source
Expand description

QOT subscribe request planning helpers.

This module owns small pure decisions that turn public Qot_Sub request flags into backend subscription options. Surface handlers should call this layer instead of re-deriving session/detail semantics inline.

Structs§

RegQotPushResolvedSecurity
SubscribeOptionsPlan

Enums§

RegQotPushLookup
SubscribePlanError

Constants§

BACKEND_MARKET_HK_OPTION
BACKEND_MARKET_US_OPTION
SECURITY_TYPE_DRVT
SECURITY_TYPE_FUTURE
SESSION_ALL
SESSION_ETH
SESSION_NONE
SESSION_OVERNIGHT
SESSION_RTH
SUB_TYPE_BASIC
SUB_TYPE_BROKER
SUB_TYPE_KL_1MIN
SUB_TYPE_KL_3MIN
SUB_TYPE_KL_5MIN
SUB_TYPE_KL_15MIN
SUB_TYPE_KL_30MIN
SUB_TYPE_KL_60MIN
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_RT
SUB_TYPE_TICKER
VALID_QOT_SUB_TYPES

Functions§

backend_desired_key_for_sec_key
Derive the backend desired-set key for a cached subscription row.
backend_subscribe_market_for_security
is_kl_sub_type
is_valid_qot_market
Whether a public Qot_Common.QotMarket value is accepted by Qot_Sub.
is_valid_sub_type
kl_type_for_sub_type
normalize_qot_sub_market
Normalize Qot_Sub market input.
public_market_from_sec_key
Extract the public QotMarket prefix from a gateway/cache sec_key.
reg_push_rehab_types
resolve_reg_qot_push_securities
Resolve Qot_RegQotPush.security_list to cache keys and stock ids.
unsupported_option_sub_type_name
Return the public name for option sub types rejected by C++ Qot_Sub.