parse_account_state

Function parse_account_state 

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

Parses a BitMEX margin message into a Nautilus account state.

ยงErrors

Returns an error if the margin data cannot be parsed into valid balance values.