Skip to main content

derive_cost_basis_method_hint

Function derive_cost_basis_method_hint 

Source
pub fn derive_cost_basis_method_hint(
    trd_market: Option<i32>,
    currency: Option<i32>,
) -> &'static str
Expand description

v1.4.94 Tier M2: 按 trd_market + currency 派生 cost_basis_method_hint.

对齐 mobile NN aas_cmn.proto CostProfitCalcMethod:

  • WEIGHTED_AVERAGE (1) — JP 信用账户用 average
  • OPEN_PRICE (2) — 部分 US (FX/期货) 用开仓价
  • EQUIVALENT_WEIGHTED_AVERAGE (3) — JP 等权平均
  • DEFAULT (0) — 其他用 diluted (默认 OpenD)