Expand description
FutuOpenD Protobuf 生成的 Rust 类型
所有子模块均由 prost-build 从 .proto 文件
自动生成(见 crate 根目录 build.rs),对齐 C++ OpenD NNProtoFile/FTAPI/
一一映射。不要手工编辑子模块内容;修改 schema 请改 proto/*.proto 后
重新 cargo build。
模块命名约定:每个 proto 文件对应一个子模块(Qot_Sub.proto →
qot_sub / Trd_PlaceOrder.proto → trd_place_order …),
子模块里含 Request / Response / C2S / S2C 等 prost 生成的 struct。
serde 行为说明:build.rs 为所有 message 加了 #[serde(default)],历史上
这导致 CamelCase 字段名(accID / trdEnv / filterConditions / beginTime)
被 serde 静默当未知字段 drop。REST adapter 层用
normalize_json_keys_snake_case 预归一化解决(v1.4.45 修,CLAUDE.md 坑 30)。
Modules§
- common
- get_
delay_ statistics - get_
global_ state - get_
user_ info - init_
connect - keep_
alive - notify
- qot_
common - qot_
get_ basic_ qot - qot_
get_ broker - qot_
get_ capital_ distribution - qot_
get_ capital_ flow - qot_
get_ code_ change - qot_
get_ future_ info - qot_
get_ holding_ change_ list - qot_
get_ ipo_ list - qot_
get_ kl - qot_
get_ market_ state - qot_
get_ option_ chain - qot_
get_ option_ expiration_ date - qot_
get_ order_ book - qot_
get_ owner_ plate - qot_
get_ plate_ security - qot_
get_ plate_ set - qot_
get_ price_ reminder - qot_
get_ reference - qot_
get_ rt - qot_
get_ security_ snapshot - qot_
get_ static_ info - qot_
get_ sub_ info - qot_
get_ suspend - qot_
get_ ticker - qot_
get_ user_ security - qot_
get_ user_ security_ group - qot_
get_ warrant - qot_
modify_ user_ security - qot_
reg_ qot_ push - qot_
request_ history_ kl - qot_
request_ history_ kl_ quota - qot_
request_ rehab - qot_
request_ trade_ date - qot_
set_ price_ reminder - qot_
stock_ filter - qot_sub
- qot_
update_ basic_ qot - qot_
update_ broker - qot_
update_ kl - qot_
update_ order_ book - qot_
update_ price_ reminder - qot_
update_ rt - qot_
update_ ticker - remote_
cmd - test_
cmd - trd_
common - trd_
flow_ summary - trd_
get_ acc_ list - trd_
get_ funds - trd_
get_ history_ order_ fill_ list - trd_
get_ history_ order_ list - trd_
get_ margin_ ratio - trd_
get_ max_ trd_ qtys - trd_
get_ order_ fee - trd_
get_ order_ fill_ list - trd_
get_ order_ list - trd_
get_ position_ list - trd_
modify_ order - trd_
notify - trd_
place_ order - trd_
reconfirm_ order - trd_
sub_ acc_ push - trd_
unlock_ trade - trd_
update_ order - trd_
update_ order_ fill - used_
quota - verification