async def fetch_balance(self, params={}):
    (await self.load_markets())
    balances = (await self.privateGetAccountBalance(params))
    result = {'info': balances}
    for i in range(0, len(balances)):
        balance = balances[i]
        currencyId = self.safe_string(balance, 'currency')
        code = self.common_currency_code(currencyId)
        multiplier = 100000000
        total = (self.safe_float(balance, 'balance') / multiplier)
        used = (self.safe_float(balance, 'pendingFunds') / multiplier)
        free = (total - used)
        account = {'free': free, 'used': used, 'total': total}
        result[code] = account
    return self.parse_balance(result)
async def fetch_balance(self, params={}):
    (await self.load_markets())
    balances = (await self.privateGetAccountBalance(params))
    result = {'info': balances}
    for i in range(0, len(balances)):
        balance = balances[i]
        currencyId = self.safe_string(balance, 'currency')
        code = self.common_currency_code(currencyId)
        multiplier = 100000000
        total = (self.safe_float(balance, 'balance') / multiplier)
        used = (self.safe_float(balance, 'pendingFunds') / multiplier)
        free = (total - used)
        account = {'free': free, 'used': used, 'total': total}
        result[code] = account
    return self.parse_balance(result)