package org.knowm.xchange.bleutrade.service; import java.io.IOException; import java.math.BigDecimal; import java.util.List; import org.knowm.xchange.Exchange; import org.knowm.xchange.bleutrade.BleutradeAdapters; import org.knowm.xchange.bleutrade.dto.account.BleutradeBalance; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.dto.account.AccountInfo; import org.knowm.xchange.exceptions.NotYetImplementedForExchangeException; import org.knowm.xchange.service.account.AccountService; public class BleutradeAccountService extends BleutradeAccountServiceRaw implements AccountService { /** * Constructor * * @param exchange */ public BleutradeAccountService(Exchange exchange) { super(exchange); } @Override public AccountInfo getAccountInfo() throws IOException { List<BleutradeBalance> bleutradeBalances = getBleutradeBalances(); return new AccountInfo(BleutradeAdapters.adaptBleutradeBalances(bleutradeBalances)); } @Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException { throw new NotYetImplementedForExchangeException(); } @Override public String requestDepositAddress(Currency currency, String... args) throws IOException { return getBleutradeDepositAddress(currency.toString()).getAddress(); } }