pub fn parse_wallet_msg(
msg: BitmexWalletMsg,
ts_init: UnixNanos,
) -> AccountState
Expand description
Parse a BitMEX wallet message into an AccountState.
BitMEX uses XBT (satoshis) as the base unit for Bitcoin. 1 XBT = 0.00000001 BTC (1 satoshi).
ยงPanics
Panics if the balance calculation is invalid (total != locked + free).