Skip to main content

futu_proto/
proto_trd.rs

1//! 交易 (Trd) 域 prost 生成模块表 — `Trd_*.proto` 一一映射(`trd_common` 共享词汇留在
2//! crate 根).
3//!
4//! v1.8.0 large-file split: 纯搬移自 `lib.rs`, 由 `lib.rs` 以 `pub use proto_trd::*`
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::{common, qot_common, trd_common};
12
13pub mod trd_flow_summary {
14    include!(concat!(env!("OUT_DIR"), "/trd_flow_summary.rs"));
15}
16
17pub mod trd_get_acc_list {
18    include!(concat!(env!("OUT_DIR"), "/trd_get_acc_list.rs"));
19}
20
21pub mod trd_get_funds {
22    include!(concat!(env!("OUT_DIR"), "/trd_get_funds.rs"));
23}
24
25pub mod trd_get_history_order_fill_list {
26    include!(concat!(
27        env!("OUT_DIR"),
28        "/trd_get_history_order_fill_list.rs"
29    ));
30}
31
32pub mod trd_get_history_order_list {
33    include!(concat!(env!("OUT_DIR"), "/trd_get_history_order_list.rs"));
34}
35
36pub mod trd_get_combo_max_trd_qtys {
37    include!(concat!(env!("OUT_DIR"), "/trd_get_combo_max_trd_qtys.rs"));
38}
39
40pub mod trd_get_margin_ratio {
41    include!(concat!(env!("OUT_DIR"), "/trd_get_margin_ratio.rs"));
42}
43
44pub mod trd_get_max_trd_qtys {
45    include!(concat!(env!("OUT_DIR"), "/trd_get_max_trd_qtys.rs"));
46}
47
48pub mod trd_get_order_fee {
49    include!(concat!(env!("OUT_DIR"), "/trd_get_order_fee.rs"));
50}
51
52pub mod trd_get_order_fill_list {
53    include!(concat!(env!("OUT_DIR"), "/trd_get_order_fill_list.rs"));
54}
55
56pub mod trd_get_order_list {
57    include!(concat!(env!("OUT_DIR"), "/trd_get_order_list.rs"));
58}
59
60pub mod trd_get_order_relations {
61    include!(concat!(env!("OUT_DIR"), "/trd_get_order_relations.rs"));
62}
63
64pub mod trd_get_position_corporate_actions {
65    include!(concat!(
66        env!("OUT_DIR"),
67        "/trd_get_position_corporate_actions.rs"
68    ));
69}
70
71pub mod trd_group_order_common {
72    include!(concat!(env!("OUT_DIR"), "/trd_group_order_common.rs"));
73}
74
75pub mod trd_place_order_group {
76    include!(concat!(env!("OUT_DIR"), "/trd_place_order_group.rs"));
77}
78
79pub mod trd_modify_order_group {
80    include!(concat!(env!("OUT_DIR"), "/trd_modify_order_group.rs"));
81}
82
83pub mod trd_cancel_order_group {
84    include!(concat!(env!("OUT_DIR"), "/trd_cancel_order_group.rs"));
85}
86
87pub mod trd_delete_order_group {
88    include!(concat!(env!("OUT_DIR"), "/trd_delete_order_group.rs"));
89}
90
91pub mod trd_place_algo_order {
92    include!(concat!(env!("OUT_DIR"), "/trd_place_algo_order.rs"));
93}
94
95pub mod trd_modify_algo_order {
96    include!(concat!(env!("OUT_DIR"), "/trd_modify_algo_order.rs"));
97}
98
99pub mod trd_reverse_position {
100    include!(concat!(env!("OUT_DIR"), "/trd_reverse_position.rs"));
101}
102
103pub mod trd_roll_position {
104    include!(concat!(env!("OUT_DIR"), "/trd_roll_position.rs"));
105}
106
107pub mod trd_clear_futures_positions {
108    include!(concat!(env!("OUT_DIR"), "/trd_clear_futures_positions.rs"));
109}
110
111pub mod trd_batch_close_positions {
112    include!(concat!(env!("OUT_DIR"), "/trd_batch_close_positions.rs"));
113}
114
115pub mod trd_get_algo_order_logs {
116    include!(concat!(env!("OUT_DIR"), "/trd_get_algo_order_logs.rs"));
117}
118
119pub mod trd_get_position_list {
120    include!(concat!(env!("OUT_DIR"), "/trd_get_position_list.rs"));
121}
122
123pub mod trd_modify_order {
124    include!(concat!(env!("OUT_DIR"), "/trd_modify_order.rs"));
125}
126
127pub mod trd_notify {
128    include!(concat!(env!("OUT_DIR"), "/trd_notify.rs"));
129}
130
131pub mod trd_place_combo_order {
132    include!(concat!(env!("OUT_DIR"), "/trd_place_combo_order.rs"));
133}
134
135pub mod trd_place_order {
136    include!(concat!(env!("OUT_DIR"), "/trd_place_order.rs"));
137}
138
139pub mod trd_preview_order_impact {
140    include!(concat!(env!("OUT_DIR"), "/trd_preview_order_impact.rs"));
141}
142
143pub mod trd_performance_common {
144    include!(concat!(env!("OUT_DIR"), "/trd_performance_common.rs"));
145}
146
147pub mod trd_get_asset_trend {
148    include!(concat!(env!("OUT_DIR"), "/trd_get_asset_trend.rs"));
149}
150
151pub mod trd_get_yield_trend {
152    include!(concat!(env!("OUT_DIR"), "/trd_get_yield_trend.rs"));
153}
154
155pub mod trd_get_return_calendar {
156    include!(concat!(env!("OUT_DIR"), "/trd_get_return_calendar.rs"));
157}
158
159pub mod trd_reconfirm_order {
160    include!(concat!(env!("OUT_DIR"), "/trd_reconfirm_order.rs"));
161}
162
163pub mod trd_sub_acc_push {
164    include!(concat!(env!("OUT_DIR"), "/trd_sub_acc_push.rs"));
165}
166
167pub mod trd_unlock_trade {
168    include!(concat!(env!("OUT_DIR"), "/trd_unlock_trade.rs"));
169}
170
171pub mod trd_update_order {
172    include!(concat!(env!("OUT_DIR"), "/trd_update_order.rs"));
173}
174
175pub mod trd_update_order_fill {
176    include!(concat!(env!("OUT_DIR"), "/trd_update_order_fill.rs"));
177}