def parse_transaction(self, item, currency=None):
    timestamp = self.safe_integer(item, 'creationTime')
    lastUpdate = self.safe_integer(item, 'lastUpdate')
    transferType = self.safe_string(item, 'transferType')
    cryptoPaymentDetail = self.safe_value(item, 'cryptoPaymentDetail', {})
    address = self.safe_string(cryptoPaymentDetail, 'address')
    txid = self.safe_string(cryptoPaymentDetail, 'txId')
    type = None
    if (transferType == 'DEPOSIT'):
        type = 'deposit'
    elif (transferType == 'WITHDRAW'):
        type = 'withdrawal'
    else:
        type = transferType
    fee = self.safe_float(item, 'fee')
    status = self.parse_transaction_status(self.safe_string(item, 'status'))
    ccy = self.safe_string(item, 'currency')
    code = self.common_currency_code(ccy)
    amount = self.safe_float(item, 'amount')
    if (amount is not None):
        amount = (amount * 1e-08)
    return {'id': self.safe_string(item, 'fundTransferId'), 'txid': txid, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'address': address, 'tag': None, 'type': type, 'amount': amount, 'currency': code, 'status': status, 'updated': lastUpdate, 'fee': {'currency': code, 'cost': fee}, 'info': item}
def parse_transaction(self, item, currency=None):
    timestamp = self.safe_integer(item, 'creationTime')
    lastUpdate = self.safe_integer(item, 'lastUpdate')
    transferType = self.safe_string(item, 'transferType')
    cryptoPaymentDetail = self.safe_value(item, 'cryptoPaymentDetail', {})
    address = self.safe_string(cryptoPaymentDetail, 'address')
    txid = self.safe_string(cryptoPaymentDetail, 'txId')
    type = None
    if (transferType == 'DEPOSIT'):
        type = 'deposit'
    elif (transferType == 'WITHDRAW'):
        type = 'withdrawal'
    else:
        type = transferType
    fee = self.safe_float(item, 'fee')
    status = self.parse_transaction_status(self.safe_string(item, 'status'))
    ccy = self.safe_string(item, 'currency')
    code = self.common_currency_code(ccy)
    amount = self.safe_float(item, 'amount')
    if (amount is not None):
        amount = (amount * 1e-08)
    return {'id': self.safe_string(item, 'fundTransferId'), 'txid': txid, 'timestamp': timestamp, 'datetime': self.iso8601(timestamp), 'address': address, 'tag': None, 'type': type, 'amount': amount, 'currency': code, 'status': status, 'updated': lastUpdate, 'fee': {'currency': code, 'cost': fee}, 'info': item}