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)] 与
#[serde(deny_unknown_fields)]。REST adapter 层仍先用
normalize_json_keys_snake_case 兼容官方 CamelCase 字段名(accID / trdEnv /
filterConditions / beginTime),再进入 generated proto serde;未知字段必须
fail-closed,不能静默 drop。
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_ company_ executive_ background - qot_
get_ company_ executives - qot_
get_ company_ operational_ efficiency - qot_
get_ company_ profile - qot_
get_ corporate_ actions_ buybacks - qot_
get_ corporate_ actions_ dividends - qot_
get_ corporate_ actions_ stock_ splits - qot_
get_ daily_ short_ volume - qot_
get_ financials_ earnings_ price_ history - qot_
get_ financials_ earnings_ price_ move - qot_
get_ financials_ revenue_ breakdown - qot_
get_ financials_ statements - qot_
get_ future_ info - qot_
get_ holding_ change_ list - qot_
get_ insider_ holder_ list - qot_
get_ insider_ trade_ list - qot_
get_ ipo_ list - qot_
get_ kl - qot_
get_ market_ state - qot_
get_ option_ chain - qot_
get_ option_ exercise_ probability - qot_
get_ option_ expiration_ date - qot_
get_ option_ quote - qot_
get_ option_ strategy - qot_
get_ option_ strategy_ analysis - qot_
get_ option_ strategy_ spread - qot_
get_ option_ volatility - 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_ research_ analyst_ consensus - qot_
get_ research_ morningstar_ report - qot_
get_ research_ rating_ summary - qot_
get_ rt - qot_
get_ security_ snapshot - qot_
get_ shareholders_ holder_ detail - qot_
get_ shareholders_ holding_ changes - qot_
get_ shareholders_ institutional - qot_
get_ shareholders_ overview - qot_
get_ short_ interest - qot_
get_ static_ info - qot_
get_ sub_ info - qot_
get_ suspend - qot_
get_ ticker - qot_
get_ top_ ten_ buy_ sell_ brokers - qot_
get_ user_ security - qot_
get_ user_ security_ group - qot_
get_ valuation_ detail - qot_
get_ valuation_ plate_ stock_ list - qot_
get_ warrant - qot_
modify_ user_ security - qot_
option_ screen - 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_
stock_ screen - 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 - qot_
warrant_ screen - remote_
cmd - skill_
wrap_ api - test_
cmd - trd_
common - trd_
flow_ summary - trd_
get_ acc_ list - trd_
get_ combo_ max_ trd_ qtys - 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_ combo_ order - trd_
place_ order - trd_
reconfirm_ order - trd_
sub_ acc_ push - trd_
unlock_ trade - trd_
update_ order - trd_
update_ order_ fill - used_
quota - verification