def fetch_deposit_address(self, code, params={}):
    self.load_markets()
    currency = self.currency(code)
    request = {'currency': currency['id']}
    response = self.accountGetDepositAddress(self.extend(request, params))
    addresses = self.parse_deposit_addresses(response)
    address = self.safe_value(addresses, code)
    if (address is None):
        raise InvalidAddress((self.id + ' fetchDepositAddress cannot return nonexistent addresses, you should create withdrawal addresses with the exchange website first'))
    return address
def fetch_deposit_address(self, code, params={}):
    self.load_markets()
    currency = self.currency(code)
    request = {'currency': currency['id']}
    response = self.accountGetDepositAddress(self.extend(request, params))
    addresses = self.parse_deposit_addresses(response)
    address = self.safe_value(addresses, code)
    if (address is None):
        raise InvalidAddress((self.id + ' fetchDepositAddress cannot return nonexistent addresses, you should create withdrawal addresses with the exchange website first'))
    return address