}
@Override
public AccountInfo getAccountInfo() throws IOException {
MyFunds myFunds = getCampBXAccountInfo();
logger.debug("myFunds = {}", myFunds);
if (!myFunds.isError()) {
// TODO move to adapter class
return new AccountInfo(exchangeSpecification.getUserName(), Arrays.asList(new Wallet("BTC", myFunds.getTotalBTC()), new Wallet("USD", myFunds.getTotalUSD())));
}
else {
throw new ExchangeException("Error calling getAccountInfo(): " + myFunds.getError());
}
}