package org.knowm.xchange.cexio.service; import java.io.IOException; import java.math.BigDecimal; import org.knowm.xchange.Exchange; import org.knowm.xchange.cexio.CexIOAdapters; import org.knowm.xchange.currency.Currency; import org.knowm.xchange.dto.account.AccountInfo; import org.knowm.xchange.exceptions.NotAvailableFromExchangeException; import org.knowm.xchange.service.account.AccountService; /** * Author: brox Since: 2/6/14 */ public class CexIOAccountService extends CexIOAccountServiceRaw implements AccountService { /** * Constructor * * @param exchange */ public CexIOAccountService(Exchange exchange) { super(exchange); } @Override public AccountInfo getAccountInfo() throws IOException { return new AccountInfo(exchange.getExchangeSpecification().getUserName(), CexIOAdapters.adaptWallet(getCexIOAccountInfo())); } @Override public String requestDepositAddress(Currency currency, String... arguments) throws IOException { throw new NotAvailableFromExchangeException(); } @Override public String withdrawFunds(Currency currency, BigDecimal amount, String address) throws IOException { throw new NotAvailableFromExchangeException(); } }