def parse_balance(self, response):
    result = {'info': response, 'timestamp': None, 'datetime': None}
    for i in range(0, len(response)):
        balance = response[i]
        currencyId = self.safe_string(balance, 'symbol')
        code = self.safe_currency_code(currencyId)
        account = self.account()
        account['free'] = self.safe_string(balance, 'available')
        account['used'] = self.safe_string(balance, 'inOrder')
        result[code] = account
    return self.safe_balance(result)
def parse_balance(self, response):
    result = {'info': response, 'timestamp': None, 'datetime': None}
    for i in range(0, len(response)):
        balance = response[i]
        currencyId = self.safe_string(balance, 'symbol')
        code = self.safe_currency_code(currencyId)
        account = self.account()
        account['free'] = self.safe_string(balance, 'available')
        account['used'] = self.safe_string(balance, 'inOrder')
        result[code] = account
    return self.safe_balance(result)