Skip to main content

query_crypto_account_info

Function query_crypto_account_info 

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

Query crypto account funds through CMD20631.

C++ 10.5.6508: NNProto_Trd_AccCrypto.cpp:197-215 sends asset_pl::AccountInfoReq with an odr_sys_cmn::MsgHeader and union_currency. APIServer_Trd_GetFunds.cpp then maps crypto market value to Funds.cryptoMv and keeps ordinary marketVal at zero.