def _update_trades(self, trades_info):
    ' trades update.\n\n        Args:\n            trades_info: trades information.\n\n        Returns:\n        '
    for t in trades_info['data']:
        ts = tools.utctime_str_to_mts(t['time'], '%Y-%m-%dT%H:%M:%S.%f+00:00')
        p = {'platform': self._platform, 'symbol': trades_info['market'], 'action': (ORDER_ACTION_BUY if (t['side'] == 'buy') else ORDER_ACTION_SELL), 'price': t['price'], 'quantity': t['size'], 'timestamp': ts}
        trade = Trade(**p)
        SingleTask.run(self.cb.on_trade_update_callback, trade)
trades update.

Args:
    trades_info: trades information.

Returns:
def _update_trades(self, trades_info):
    ' trades update.\n\n        Args:\n            trades_info: trades information.\n\n        Returns:\n        '
    for t in trades_info['data']:
        ts = tools.utctime_str_to_mts(t['time'], '%Y-%m-%dT%H:%M:%S.%f+00:00')
        p = {'platform': self._platform, 'symbol': trades_info['market'], 'action': (ORDER_ACTION_BUY if (t['side'] == 'buy') else ORDER_ACTION_SELL), 'price': t['price'], 'quantity': t['size'], 'timestamp': ts}
        trade = Trade(**p)
        SingleTask.run(self.cb.on_trade_update_callback, trade)