Skip to main content

effective_get_funds_currency_for_account

Function effective_get_funds_currency_for_account 

Source
pub fn effective_get_funds_currency_for_account(
    requested_currency: Option<i32>,
    security_firm: Option<i32>,
    trd_market: Option<i32>,
    uni_card_num: Option<&str>,
    trd_market_auth_list: &[i32],
) -> Option<i32>
Expand description

Trd_GetFunds 用户侧 effective currency。

  • 用户显式传 currency:原样使用,后续 validator 负责校验 supported set。
  • Futures / Universal 未传:按 broker 默认币种补齐,避免 CLI/REST/MCP 每个 surface 自己猜,也避免用户必须先知道内部 acc_id/currency 规则。
  • SingleCurrency 未传:保持 None,对齐 C++ legacy 分支“currency 被忽略” 的语义。