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