def fetch_deposit_address(self, code, params={}):
    self.load_markets()
    currency = self.currency(code)
    request = {'fund_currency': currency['id']}
    response = self.privateGetFundingDestination(self.extend(request, params))
    address = self.safe_string(response['payload'], 'account_identifier')
    tag = None
    if (address.find('?dt=') >= 0):
        parts = address.split('?dt=')
        address = self.safe_string(parts, 0)
        tag = self.safe_string(parts, 1)
    self.check_address(address)
    return {'currency': code, 'address': address, 'tag': tag, 'network': None, 'info': response}
def fetch_deposit_address(self, code, params={}):
    self.load_markets()
    currency = self.currency(code)
    request = {'fund_currency': currency['id']}
    response = self.privateGetFundingDestination(self.extend(request, params))
    address = self.safe_string(response['payload'], 'account_identifier')
    tag = None
    if (address.find('?dt=') >= 0):
        parts = address.split('?dt=')
        address = self.safe_string(parts, 0)
        tag = self.safe_string(parts, 1)
    self.check_address(address)
    return {'currency': code, 'address': address, 'tag': tag, 'network': None, 'info': response}