def fetch_currencies(self, params={}):
    response = self.accountGetCurrencies(params)
    result = {}
    for i in range(0, len(response)):
        currency = response[i]
        id = self.safe_string(currency, 'currency')
        code = self.safe_currency_code(id)
        precision = 1e-08
        name = self.safe_string(currency, 'name')
        canDeposit = self.safe_integer(currency, 'can_deposit')
        canWithdraw = self.safe_integer(currency, 'can_withdraw')
        active = (True if (canDeposit and canWithdraw) else False)
        result[code] = {'id': id, 'code': code, 'info': currency, 'type': None, 'name': name, 'active': active, 'fee': None, 'precision': precision, 'limits': {'amount': {'min': None, 'max': None}, 'price': {'min': None, 'max': None}, 'cost': {'min': None, 'max': None}, 'withdraw': {'min': self.safe_float(currency, 'min_withdrawal'), 'max': None}}}
    return result
def fetch_currencies(self, params={}):
    response = self.accountGetCurrencies(params)
    result = {}
    for i in range(0, len(response)):
        currency = response[i]
        id = self.safe_string(currency, 'currency')
        code = self.safe_currency_code(id)
        precision = 1e-08
        name = self.safe_string(currency, 'name')
        canDeposit = self.safe_integer(currency, 'can_deposit')
        canWithdraw = self.safe_integer(currency, 'can_withdraw')
        active = (True if (canDeposit and canWithdraw) else False)
        result[code] = {'id': id, 'code': code, 'info': currency, 'type': None, 'name': name, 'active': active, 'fee': None, 'precision': precision, 'limits': {'amount': {'min': None, 'max': None}, 'price': {'min': None, 'max': None}, 'cost': {'min': None, 'max': None}, 'withdraw': {'min': self.safe_float(currency, 'min_withdrawal'), 'max': None}}}
    return result