package com.xeiam.xchange.btce.v3.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.NotAvailableFromExchangeException;
import com.xeiam.xchange.btce.v3.BTCEAdapters;
import com.xeiam.xchange.btce.v3.dto.account.BTCEAccountInfo;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.service.polling.PollingAccountService;
/**
* @author Matija Mazi
*/
public class BTCEAccountService extends BTCEAccountServiceRaw implements PollingAccountService {
/**
* Constructor
*
* @param exchangeSpecification The {@link ExchangeSpecification}
*/
public BTCEAccountService(ExchangeSpecification exchangeSpecification) {
super(exchangeSpecification);
}
@Override
public AccountInfo getAccountInfo() throws IOException {
BTCEAccountInfo info = getBTCEAccountInfo(null, null, null, null, null, null, null);
return BTCEAdapters.adaptAccountInfo(info);
}
@Override
public String withdrawFunds(String currency, BigDecimal amount, String address) throws IOException {
throw new NotAvailableFromExchangeException();
}
@Override
public String requestDepositAddress(String currency, String... args) throws IOException {
throw new NotAvailableFromExchangeException();
}
}