org.knowm.xchange.cobinhood.service.CobinhoodAccountService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-cobinhood Show documentation
Show all versions of xchange-cobinhood Show documentation
Development fork. Not for general use.
package org.knowm.xchange.cobinhood.service;
import java.io.IOException;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.cobinhood.dto.CobinhoodAdapters;
import org.knowm.xchange.cobinhood.dto.account.CobinhoodCoinBalances;
import org.knowm.xchange.dto.account.AccountInfo;
import org.knowm.xchange.service.account.AccountService;
public class CobinhoodAccountService extends CobinhoodAccountServiceRaw implements AccountService {
public CobinhoodAccountService(Exchange exchange) {
super(exchange);
}
@Override
public AccountInfo getAccountInfo() throws IOException {
CobinhoodCoinBalances balances = getCobinhoodBalances();
return CobinhoodAdapters.adaptAccountInfo(balances);
}
}