Skip to main contentModule quote_sub
Source - sbit
- 后端 SubscribeBit 值
- sub_type
- FTAPI SubType 枚举值
- EmptyDesiredMarket
- Explicit backend market group for an empty CMD6211 set-state request.
- SecurityWithOpts
- v1.4.106 codex 1131 F1+F2: 单个 (security, sub_types_with_opts) 集合.
让 caller 一次表达 (stock_id, ftapi_market, [(sub_type, SubBitOptions)]).
- SubBitOptions
- v1.4.106 codex 1131 F6 [P2]: 单个 (security, sub_type) 的扩展参数.
- SubscribeBitInfo
- QotSubError
- v1.4.106 codex 1131 F1:
submit_global_desired_set 错误类型.
让 caller (SubHandler) 区分 backend reject vs decode err vs timeout →
ack-then-commit pattern (F1 P1).
- CMD_QOT_PULL_TICKER
- 逐笔主动拉取命令 ID.
- CMD_QOT_PUSH
- 后端推送命令 ID
- CMD_QOT_SUB
- 后端订阅命令 ID
- build_subscribe_req_with_options
- v1.4.106 codex 1131 F6: 构建带 SubBitOptions 的订阅请求 — 真传 session
/ detail / extended_time 给 backend.
- empty_desired_market_for_sub
- ftapi_market_to_quote_mkt
- FTAPI market → 后端 NN_QuoteMktType 映射
- pull_latest_ticker
- 拉取最新逐笔,用于对齐 C++ Qot_Sub 成功后“订阅逐笔要提前拉一根”。
- sub_type_to_bit_infos_with_options
- sub_type_to_bits
- FTAPI SubType → 后端 SubscribeBit 列表映射
返回 (bit, probability) 列表
- sub_type_to_bits_with_options
- 按 SubBitOptions 计算实际 (bit, prob) 列表 — 取代 sub_type_to_bits 简版.
- submit_empty_desired_set_for_markets
- submit_global_desired_set
- v1.4.106 codex 1131 F1+F2: 给 caller (SubHandler) 的 set-state 接口.
- SecuritySubscribeInput
- v1.4.110 Phase 2 Slice 4: per-security 输入 —
(stock_id, broker_id, sub_types_with_opts)
3-tuple. broker_id = None 走 no-broker 路径 (普通股, Phase 2 默认),
Some(NonZeroU32) 走 broker-aware 路径 (crypto multi-broker).