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)]#[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