public static AccountInfo adaptAccountInfo(HitbtcBalance[] accountInfoRaw) {
List<Wallet> wallets = new ArrayList<Wallet>(accountInfoRaw.length);
for (int i = 0; i < accountInfoRaw.length; i++) {
HitbtcBalance balance = accountInfoRaw[i];
Wallet wallet = new Wallet(balance.getCurrencyCode(), balance.getCash().add(balance.getReserved()), balance.getCurrencyCode());
wallets.add(wallet);
}
return new AccountInfo(null, wallets);
}