package org.knowm.xchange.bitcurex.service;
import java.io.IOException;
import java.math.BigDecimal;
import org.knowm.xchange.Exchange;
import org.knowm.xchange.bitcurex.BitcurexAdapters;
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 BitcurexAccountService extends BitcurexAccountServiceRaw implements AccountService {
/**
* Constructor
*
* @param exchange
*/
public BitcurexAccountService(Exchange exchange) {
super(exchange);
}
@Override
public AccountInfo getAccountInfo() throws IOException {
return new AccountInfo(exchange.getExchangeSpecification().getUserName(), BitcurexAdapters.adaptWallet(getFunds()));
}
@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 getFunds().getAddress();
}
}