
com.xeiam.xchange.poloniex.service.polling.PoloniexAccountService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-poloniex Show documentation
Show all versions of xchange-poloniex Show documentation
XChange implementation for the Poloniex Exchange
The newest version!
package com.xeiam.xchange.poloniex.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.List;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.dto.trade.Wallet;
import com.xeiam.xchange.exceptions.NotYetImplementedForExchangeException;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
/**
* @author Zach Holmes
*/
public class PoloniexAccountService extends PoloniexAccountServiceRaw implements PollingAccountService {
/**
* Constructor
*
* @param exchange
*/
public PoloniexAccountService(Exchange exchange) {
super(exchange);
}
@Override
public AccountInfo getAccountInfo() throws IOException {
List wallets = getWallets();
return new AccountInfo(null, wallets);
}
@Override
public String withdrawFunds(String currency, BigDecimal amount, String address) throws IOException {
throw new NotYetImplementedForExchangeException();
}
@Override
public String requestDepositAddress(String currency, String... args) throws IOException {
return getDepositAddress(currency);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy