Skip to main content

get_funds_with_currency

Function get_funds_with_currency 

Source
pub async fn get_funds_with_currency(
    client: &Arc<FutuClient>,
    env: &str,
    acc_id: u64,
    market: &str,
    currency: Option<&str>,
) -> Result<String>
Expand description

查询账户资金,可显式传入 currency 字符串 (HKD|USD|CNH|JPY|SGD|AUD|CAD|MYR|USDT).

留空时 daemon 会按账户所属券商派生默认资金视图币种;显式传入时由 gateway 校验账户是否支持该币种。普通单市场账户可能由 backend 忽略 显式币种并返回账户基准币种。