def parse_trade(self, trade, market=None):
    timestamp = self.parse8601(self.safe_string(trade, 'created_at'))
    marketId = self.safe_string(trade, 'book')
    symbol = self.safe_symbol(marketId, market, '_')
    side = self.safe_string_2(trade, 'side', 'maker_side')
    makerSide = self.safe_string(trade, 'maker_side')
    takerOrMaker = None
    if (side == makerSide):
        takerOrMaker = 'maker'
    else:
        takerOrMaker = 'taker'
    amount = self.safe_string_2(trade, 'amount', 'major')
    if (amount is not None):
        amount = Precise.string_abs(amount)
    fee = None
    feeCost = self.safe_string(trade, 'fees_amount')
    if (feeCost is not None):
        feeCurrencyId = self.safe_string(trade, 'fees_currency')
        feeCurrency = self.safe_currency_code(feeCurrencyId)
        fee = {'cost': feeCost, 'currency': feeCurrency}
    cost = self.safe_string(trade, 'minor')
    if (cost is not None):
        cost = Precise.string_abs(cost)
    price = self.safe_string(trade, 'price')
    orderId = self.safe_string(trade, 'oid')
    id = self.safe_string(trade, 'tid')
    return self.safe_trade({'id': id, 'info': trade, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'order': orderId, 'type': None, 'side': side, 'takerOrMaker': takerOrMaker, 'price': price, 'amount': amount, 'cost': cost, 'fee': fee}, market)
def parse_trade(self, trade, market=None):
    timestamp = self.parse8601(self.safe_string(trade, 'created_at'))
    marketId = self.safe_string(trade, 'book')
    symbol = self.safe_symbol(marketId, market, '_')
    side = self.safe_string_2(trade, 'side', 'maker_side')
    makerSide = self.safe_string(trade, 'maker_side')
    takerOrMaker = None
    if (side == makerSide):
        takerOrMaker = 'maker'
    else:
        takerOrMaker = 'taker'
    amount = self.safe_string_2(trade, 'amount', 'major')
    if (amount is not None):
        amount = Precise.string_abs(amount)
    fee = None
    feeCost = self.safe_string(trade, 'fees_amount')
    if (feeCost is not None):
        feeCurrencyId = self.safe_string(trade, 'fees_currency')
        feeCurrency = self.safe_currency_code(feeCurrencyId)
        fee = {'cost': feeCost, 'currency': feeCurrency}
    cost = self.safe_string(trade, 'minor')
    if (cost is not None):
        cost = Precise.string_abs(cost)
    price = self.safe_string(trade, 'price')
    orderId = self.safe_string(trade, 'oid')
    id = self.safe_string(trade, 'tid')
    return self.safe_trade({'id': id, 'info': trade, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'symbol': symbol, 'order': orderId, 'type': None, 'side': side, 'takerOrMaker': takerOrMaker, 'price': price, 'amount': amount, 'cost': cost, 'fee': fee}, market)