package org.knowm.xchange.lakebtc.service; import java.io.IOException; import java.math.BigDecimal; import org.knowm.xchange.Exchange; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.dto.account.AccountInfo; import org.knowm.xchange.exceptions.NotYetImplementedForExchangeException; import org.knowm.xchange.lakebtc.LakeBTCAdapters; import org.knowm.xchange.lakebtc.dto.account.LakeBTCAccountInfoResponse; import org.knowm.xchange.service.account.AccountService; /** * @author cristian.lucaci */ public class LakeBTCAccountService extends LakeBTCAccountServiceRaw implements AccountService { /** * Constructor * * @param exchange */ public LakeBTCAccountService(Exchange exchange) { super(exchange); } @Override public AccountInfo getAccountInfo() throws IOException { LakeBTCAccountInfoResponse response = super.getLakeBTCAccountInfo(); return LakeBTCAdapters.adaptAccountInfo(response.getResult()); } @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 { throw new NotYetImplementedForExchangeException(); } }