Skip to main content

futu_qot/
lib.rs

1//! FutuOpenD 行情业务模块
2//!
3//! 实装"行情侧" 所有业务:订阅 / 快照 / K线 / 摆盘 / 分时 / 成交明细 /
4//! 静态信息 / 经纪队列 / 价格提醒等,对齐 C++ OpenD 的 `NN_ProtoCmd_Qot_*` 全集。
5//!
6//! 主要模块:
7//! - [`sub`] / [`push`] — 订阅管理 + [`QuotePushDispatcher`] 推送分发
8//! - [`basic_qot`] — 基础报价(`BasicQot`)
9//! - [`snapshot`] — 证券快照
10//! - [`kline`] / [`history_kl`] — 当日 K 线 / 历史 K 线
11//! - [`order_book`] / [`order_detail`] / [`ticker`] — 摆盘 / 逐笔 / 成交明细
12//! - [`broker`] — 经纪队列
13//! - [`rt`] — 分时数据
14//! - [`static_info`] — 证券静态信息
15//! - [`market_misc`] — 市场状态 / 股票过滤 / 期权链 / 涨跌 / 调整等
16//! - [`right_gate`] — 行情权限订阅拒绝矩阵的纯决策层
17//! - [`symbol_list`] — 列表型 input 契约 helper(v1.4.106 codex 0641 整体重构)
18//! - [`subscription_plan`] — 订阅请求到 backend desired options 的纯决策层
19//! - [`types`] — 核心类型([`Security`] / [`KLType`] / [`SubType`] / ...)
20
21pub mod basic_qot;
22pub mod broker;
23pub mod history_kl;
24pub mod kline;
25pub mod market_misc;
26pub mod order_book;
27pub mod order_detail;
28pub mod page_bounds;
29pub mod push;
30pub mod quote_rights;
31pub mod right_gate;
32pub mod rt;
33pub mod snapshot;
34pub mod static_info;
35pub mod sub;
36pub mod subscription_plan;
37pub mod symbol_list;
38pub mod ticker;
39pub mod types;
40
41// Re-export 常用类型
42pub use page_bounds::{
43    PageBounds, PageBoundsError, PageBoundsErrorReason, validate_begin_num,
44    validate_optional_max_count,
45};
46pub use push::{QuoteHandler, QuotePushDispatcher};
47pub use types::{BasicQot, KLType, KLine, OrderBookData, QotMarket, RehabType, Security, SubType};