def parse_trade(self, trade, market=None):
    price = self.safe_float(trade, 'price')
    amount = self.safe_float(trade, 'amount')
    cost = None
    if (price is not None):
        if (amount is not None):
            cost = (price * amount)
    timestamp = self.safe_integer(trade, 'timestamp')
    id = self.safe_string(trade, 'id')
    marketId = self.safe_string(trade, 'currencyPair')
    if (marketId in self.markets_by_id):
        market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    return {'id': id, 'info': trade, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'type': None, 'side': None, 'order': None, 'takerOrMaker': None, 'price': price, 'amount': amount, 'cost': cost, 'fee': None}
def parse_trade(self, trade, market=None):
    price = self.safe_float(trade, 'price')
    amount = self.safe_float(trade, 'amount')
    cost = None
    if (price is not None):
        if (amount is not None):
            cost = (price * amount)
    timestamp = self.safe_integer(trade, 'timestamp')
    id = self.safe_string(trade, 'id')
    marketId = self.safe_string(trade, 'currencyPair')
    if (marketId in self.markets_by_id):
        market = self.markets_by_id[marketId]
    symbol = None
    if (market is not None):
        symbol = market['symbol']
    return {'id': id, 'info': trade, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'type': None, 'side': None, 'order': None, 'takerOrMaker': None, 'price': price, 'amount': amount, 'cost': cost, 'fee': None}