def parse_trade(self, trade, market=None):
    node = trade['node']
    timestamp = self.parse8601(node['inserted_at'])
    price = self.safe_float(node, 'price')
    amount = self.safe_float(node, 'amount')
    if (market is None):
        marketId = self.safe_string(node, 'market_id')
        if (marketId in self.markets_by_id):
            market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    cost = self.cost_to_precision(symbol, (price * amount))
    side = None
    if (node['taker_side'] == 'ASK'):
        side = 'sell'
    else:
        side = 'buy'
    return {'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'id': self.safe_string(node, 'id'), 'order': None, 'type': 'limit', 'side': side, 'price': price, 'amount': amount, 'cost': float(cost), 'fee': None, 'info': trade}
def parse_trade(self, trade, market=None):
    node = trade['node']
    timestamp = self.parse8601(node['inserted_at'])
    price = self.safe_float(node, 'price')
    amount = self.safe_float(node, 'amount')
    if (market is None):
        marketId = self.safe_string(node, 'market_id')
        if (marketId in self.markets_by_id):
            market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    cost = self.cost_to_precision(symbol, (price * amount))
    side = None
    if (node['taker_side'] == 'ASK'):
        side = 'sell'
    else:
        side = 'buy'
    return {'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'id': self.safe_string(node, 'id'), 'order': None, 'type': 'limit', 'side': side, 'price': price, 'amount': amount, 'cost': float(cost), 'fee': None, 'info': trade}