pub fn parse_margin_msg(
msg: BitmexMarginMsg,
instrument_id: InstrumentId,
) -> MarginBalance
Expand description
Parse a BitMEX margin message into margin balance information.
This creates a MarginBalance that can be added to an AccountState.