Skip to main content

effective_modify_order_fields

Function effective_modify_order_fields 

Source
pub(super) fn effective_modify_order_fields(
    market: TrdMarket,
    qty: Option<f64>,
    price: Option<f64>,
) -> ModifyOrderEffectiveFields
Expand description

Computes the values that C++ actually sends to the real backend.

Ref: APIServer_Trd_ModifyOrder.cpp:324-343 first normalizes API qty/price; NNProto_Trd_OrderOpReal.cpp:543-569 then emits non-futures prices with four decimals, futures with nine, Prediction qty with two, and ordinary qty as i64.