@classmethod
def trade_message_from_db(cls, record: RowProxy, metadata: Optional[Dict]=None):
    '\n        *used for backtesting\n        Convert a row of trade data into standard OrderBookMessage format\n        :param record: a row of trade data from the database\n        :return: BinarzOrderBookMessage\n        '
    return BinarzOrderBookMessage(message_type=OrderBookMessageType.TRADE, content=record.json, timestamp=record.timestamp)
*used for backtesting
Convert a row of trade data into standard OrderBookMessage format
:param record: a row of trade data from the database
:return: BinarzOrderBookMessage
@classmethod
def trade_message_from_db(cls, record: RowProxy, metadata: Optional[Dict]=None):
    '\n        *used for backtesting\n        Convert a row of trade data into standard OrderBookMessage format\n        :param record: a row of trade data from the database\n        :return: BinarzOrderBookMessage\n        '
    return BinarzOrderBookMessage(message_type=OrderBookMessageType.TRADE, content=record.json, timestamp=record.timestamp)