Skip to main content

try_order_fill_proto_to_info_like_cpp

Function try_order_fill_proto_to_info_like_cpp 

Source
pub fn try_order_fill_proto_to_info_like_cpp(
    f: &OrderFill,
) -> Option<OrderFillInfo>
Expand description

Backend odr_sys_cmn::OrderFill → OpenD cache/API OrderFillInfo.

Ref: FutuOpenD/Src/NNProtoCenter/Trade/Deal/NNProto_Trd_DealReal.cpp:13-122. C++ UnPackDealItem drops rows unless id/side/market/symbol/exchange/ price/qty/create_time are present, price/qty parse as doubles, and the real-account market passes IsValidTrdMarket(NN_TrdEnv_Real, market).

Simulated deal query is unsupported in C++ (NNProto_Trd_DealSimulate.cpp:13-67), while NOTICE_TYPE_ORDER_FILL_NTF also calls DealReal::UnPackDealList, so Rust uses the same real deal row gate for query-cache and direct-push paths.