Skip to main content

query_crypto_position_account_info

Function query_crypto_position_account_info 

Source
pub async fn query_crypto_position_account_info(
    backend: &BackendConn,
    acc_id: u64,
    trd_cache: &TrdCache,
) -> Result<()>
Expand description

Query crypto positions through CMD20631.

The public Trd_GetPositionList.C2S proto has no currency field. Crypto backend requires union_currency, so Rust follows the C++ GetFunds no-currency default and uses HKD until the public position proto gains an explicit currency selector.