pub fn parse_account_state(
okx_account: &OKXAccount,
account_id: AccountId,
account_type: AccountType,
ts_init: UnixNanos,
) -> Result<AccountState>Expand description
Parses an OKX balance snapshot into a Nautilus [AccountState].
Pass the execution client’s configured account type: the OKX balance payload carries no account-mode field, and the emitted type decides which account the engine materializes for this venue.
§Errors
Returns an error if the data cannot be parsed.