Skip to main content

backend_deal_status_to_ftapi

Function backend_deal_status_to_ftapi 

Source
pub fn backend_deal_status_to_ftapi(
    is_cancelled: bool,
    is_corrected: bool,
) -> i32
Expand description

backend_deal_status_to_ftapi — 对齐 C++ NN_DealStatus (NNBase_Define_Enum.h:377-381) + C++ NNProto_Trd_Deal.cpp:68-91 转换: is_cancelled=true → 1 (Cancelled), is_corrected=true → 2 (Changed), otherwise → 0 (OK).

v1.4.106 codex 0955 F6: 之前 query_order_fills 用错值 (1/2/3 代 0/1/2), 与 active read path (GetOrderFillListHandler) 不一致. 现在抽 共享 helper 让 active 读 + push refresh + cache 全部用同一映射.