Skip to main content

Crate futu_proto

Crate futu_proto 

Source
Expand description

FutuOpenD Protobuf 生成的 Rust 类型

所有子模块均由 prost-build.proto 文件 自动生成(见 crate 根目录 build.rs),对齐 C++ OpenD NNProtoFile/FTAPI/ 一一映射。不要手工编辑子模块内容;修改 schema 请改 proto/*.proto 后 重新 cargo build

模块命名约定:每个 proto 文件对应一个子模块(Qot_Sub.protoqot_sub / Trd_PlaceOrder.prototrd_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