package com.xeiam.xchange.bitcurex.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import com.xeiam.xchange.ExchangeException;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.NotAvailableFromExchangeException;
import com.xeiam.xchange.NotYetImplementedForExchangeException;
import com.xeiam.xchange.bitcurex.BitcurexAdapters;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.service.polling.PollingAccountService;
public class BitcurexAccountService extends BitcurexAccountServiceRaw implements PollingAccountService {
public BitcurexAccountService(ExchangeSpecification exchangeSpecification) throws IOException {
super(exchangeSpecification);
}
@Override
public AccountInfo getAccountInfo() throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {
return BitcurexAdapters.adaptAccountInfo(getFunds(), exchangeSpecification.getUserName());
}
@Override
public String withdrawFunds(String currency, BigDecimal amount, String address) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {
throw new NotYetImplementedForExchangeException();
}
@Override
public String requestDepositAddress(String currency, String... args) throws ExchangeException, NotAvailableFromExchangeException, NotYetImplementedForExchangeException, IOException {
return getFunds().getAddress();
}
}