Skip to main content

futu_proto/
proto_qot_option.rs

1//! 行情 (Qot) 期权家族 prost 生成模块表 — `Qot_Option*.proto` / `Qot_GetOption*.proto`
2//! 一一映射, 含 `qot_option_indicator_modules.rs`(期权指标 / 排行 / 事件 / 0DTE 等).
3//!
4//! v1.8.0 large-file split: 纯搬移自 `lib.rs`, 由 `lib.rs` 以 `pub use proto_qot_option::*`
5//! 原路径回导出, `futu_proto::<module>` 对外路径不变. 子模块内容由 `build.rs` 生成,
6//! **不要手工编辑**; 修改 schema 请改 `proto/*.proto`.
7
8// prost 生成的模块以 `super::<sibling>`(如 `super::qot_common::Security`)引用跨 proto
9// 类型, 拆分前 parent 是 crate 根. v1.8.0 large-file split 后本文件成为 parent, 这里
10// 私有 re-import 让生成代码里的 `super::` 路径继续解析(不对外暴露新路径).
11use super::qot_common;
12
13pub mod qot_option_common {
14    include!(concat!(env!("OUT_DIR"), "/qot_option_common.rs"));
15}
16
17pub mod qot_get_option_chain {
18    include!(concat!(env!("OUT_DIR"), "/qot_get_option_chain.rs"));
19}
20
21pub mod qot_get_option_quote {
22    include!(concat!(env!("OUT_DIR"), "/qot_get_option_quote.rs"));
23}
24
25pub mod qot_get_option_exercise_probability {
26    include!(concat!(
27        env!("OUT_DIR"),
28        "/qot_get_option_exercise_probability.rs"
29    ));
30}
31
32pub mod qot_get_option_expiration_date {
33    include!(concat!(
34        env!("OUT_DIR"),
35        "/qot_get_option_expiration_date.rs"
36    ));
37}
38
39include!("qot_option_indicator_modules.rs");
40
41pub mod qot_option_screen {
42    include!(concat!(env!("OUT_DIR"), "/qot_option_screen.rs"));
43}
44
45pub mod qot_update_option_event {
46    include!(concat!(env!("OUT_DIR"), "/qot_update_option_event.rs"));
47}