Skip to main content

parse_account_state

Function parse_account_state 

Source
pub fn parse_account_state(
    funds: &AccountFundsResponse,
    account_id: AccountId,
    currency: Currency,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Result<AccountState>
Expand description

Parses a Betfair AccountFundsResponse into a Nautilus [AccountState].

ยงErrors

Returns an error if monetary values cannot be converted.