parse_account_state

Function parse_account_state 

Source
pub fn parse_account_state(
    response: &AxBalancesResponse,
    account_id: AccountId,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<AccountState>
Expand description

Parses an Ax balances response into a Nautilus [AccountState].

Ax provides a simple balance structure with symbol and amount. The amount is treated as both total and free balance (no locked funds tracking).

ยงErrors

Returns an error if balance amount parsing fails.