Skip to main content

futu_qot/
subscription_plan.rs

1//! Backward-compatible QOT subscription planning facade.
2//!
3//! v1.5.0 moves public subscription constants, DTOs, market routing, and
4//! option/session normalization to `futu-core`. Keep this module as a thin
5//! compatibility shell for older internal call sites.
6
7pub use futu_core::qot_subscription_options::{
8    SESSION_ALL, SESSION_ETH, SESSION_NONE, SESSION_OVERNIGHT, SESSION_RTH, SubscribeOptionsPlan,
9    SubscribePlanError,
10};
11
12pub use futu_core::qot_subscription::{
13    BACKEND_MARKET_HK_OPTION, BACKEND_MARKET_US_OPTION, EmptyDesiredMarket, JP_LV2_ORDER_STOCK,
14    JP_LV2_ORDER_STOCK_FULL, LV2_ORDER_US_FUTURE, Lv2OrderGroupPlan, OrderBookWireProfile,
15    SECURITY_TYPE_DRVT, SECURITY_TYPE_FUTURE, SG_LV2_ORDER_STOCK, SG_LV2_ORDER_STOCK_ODD_LOT,
16    SUB_TYPE_BASIC, SUB_TYPE_BROKER, SUB_TYPE_KL_1MIN, SUB_TYPE_KL_3MIN, SUB_TYPE_KL_5MIN,
17    SUB_TYPE_KL_10MIN, SUB_TYPE_KL_15MIN, SUB_TYPE_KL_30MIN, SUB_TYPE_KL_60MIN, SUB_TYPE_KL_120MIN,
18    SUB_TYPE_KL_180MIN, SUB_TYPE_KL_240MIN, SUB_TYPE_KL_DAY, SUB_TYPE_KL_MONTH,
19    SUB_TYPE_KL_QUARTER, SUB_TYPE_KL_WEEK, SUB_TYPE_KL_YEAR, SUB_TYPE_NONE, SUB_TYPE_ORDER_BOOK,
20    SUB_TYPE_ORDER_BOOK_ODD, SUB_TYPE_RT, SUB_TYPE_TICKER, SecurityWithOpts, SubBitOptions,
21    SubscriptionWireProfile, US_LV2_ORDER_ARCA, US_LV2_ORDER_NASDAQ_TV, US_LV2_ORDER_OVERNIGHT,
22    VALID_QOT_SUB_TYPES, backend_desired_key_for_sec_key, backend_subscribe_market_for_security,
23    canonical_public_qot_market, empty_desired_market_for_sub, ftapi_market_to_quote_mkt,
24    is_depth_sub_type, is_kl_sub_type, is_valid_qot_market, is_valid_sub_type,
25    kl_type_for_sub_type, legacy_trd_market_to_qot_market, public_market_from_sec_key,
26    unsupported_option_sub_type_name,
27};
28
29#[cfg(test)]
30mod tests;