@classmethod
def trade_message_from_exchange(cls, msg: BinarzTrade, timestamp: Optional[float]=None):
    '\n        Convert a trade data into standard OrderBookMessage format\n        '
    msg = {'exchange_order_id': msg.order_id, 'trade_type': msg.type, 'price': msg.price, 'amount': msg.amount}
    return BinarzOrderBookMessage(message_type=OrderBookMessageType.TRADE, content=msg, timestamp=timestamp)
Convert a trade data into standard OrderBookMessage format
@classmethod
def trade_message_from_exchange(cls, msg: BinarzTrade, timestamp: Optional[float]=None):
    '\n        \n        '
    msg = {'exchange_order_id': msg.order_id, 'trade_type': msg.type, 'price': msg.price, 'amount': msg.amount}
    return BinarzOrderBookMessage(message_type=OrderBookMessageType.TRADE, content=msg, timestamp=timestamp)