pub struct SubBitOptions {
pub session: i32,
pub orderbook_detail: bool,
pub orderbook_full_depth: bool,
pub broker_detail: bool,
pub us_pre_after_detail: bool,
pub extended_time: bool,
pub merged_lv2_order_types: u32,
pub merged_lv2_order_types_v2: u32,
}Expand description
v1.4.106 codex 1131 F6 [P2]: 单个 (security, sub_type) 的扩展参数.
决定 backend req body 里的 prob / detail flag / session 选择. 由 SubHandler 从 c2s + SubscriptionManager 的 detail/session aggregator 聚合产出.
Fields§
§session: i32session: 1=RTH / 2=ETH / 3=ALL / 5=OVERNIGHT (rejected by C++) 仅 Ticker / KLRT 类有 session 语义, 其他 sub_type 应填 RTH 默认.
orderbook_detail: boolOrderBook detail (有 conn 要 detail → 全局走 detail bit).
orderbook_full_depth: boolHKSF orderbook uses C++ OrderBook_All / OrderBook_All_WithDetail
backend prob so the server pushes every available side level, not only
the default 40-level snapshot.
broker_detail: boolBroker detail (HK broker queue 时有 conn 要 detail → 走 detail bit).
us_pre_after_detail: boolUS Basic/MOST quote needs SBIT_US_PREMARKET_AFTERHOURS_DETAIL so BasicQot can expose preMarket / afterMarket / overnight.
extended_time: bool扩展 session 含 ETH / Overnight / pre-after / etc — 影响 prob / time_seg. 对齐 C++ APIServer_Qot_Sub.cpp:218-257.
merged_lv2_order_types: u32C++ SBIT_MEGER_LV2_ORDER 的 prob2 USLV2OrderSubProb type bitmask.
Ref: MktQotSubInstance.cpp:114-180.
merged_lv2_order_types_v2: u32C++ SBIT_MEGER_LV2_ORDER 的 prob2_v2 USLV2OrderSubProb type bitmask.
Overnight / US futures 会产生非 UTF-8 protobuf bytes, 必须走 bytes field.
Trait Implementations§
Source§impl Clone for SubBitOptions
impl Clone for SubBitOptions
Source§fn clone(&self) -> SubBitOptions
fn clone(&self) -> SubBitOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more