def parse_trades(self, trades, market=None, since=None, limit=None):
    array = self.to_array(trades)
    array = [self.parse_trade(trade, market) for trade in array]
    array = self.sort_by(array, 'timestamp')
    symbol = (market['symbol'] if market else None)
    return self.filter_by_symbol_since_limit(array, symbol, since, limit)
def parse_trades(self, trades, market=None, since=None, limit=None):
    array = self.to_array(trades)
    array = [self.parse_trade(trade, market) for trade in array]
    array = self.sort_by(array, 'timestamp')
    symbol = (market['symbol'] if market else None)
    return self.filter_by_symbol_since_limit(array, symbol, since, limit)