![JAR search and dependency download from the Maven repository](/logo.png)
org.oxerr.peatio.rest.service.polling.PeatioAccountService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of peatio-client-rest Show documentation
Show all versions of peatio-client-rest Show documentation
Client for <a href="http://peat.io">Peatio</a> RESTful API.
The newest version!
package org.oxerr.peatio.rest.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import org.oxerr.peatio.rest.PeatioAdapters;
import org.oxerr.peatio.rest.PeatioException;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.exceptions.ExchangeException;
import com.xeiam.xchange.exceptions.NotAvailableFromExchangeException;
import com.xeiam.xchange.exceptions.NotYetImplementedForExchangeException;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
/**
* Account service.
*/
public class PeatioAccountService extends PeatioAccountServiceRaw implements
PollingAccountService {
public PeatioAccountService(Exchange exchange) {
super(exchange);
}
/**
* {@inheritDoc}
*/
@Override
public AccountInfo getAccountInfo() throws PeatioException, IOException {
return PeatioAdapters.adaptMember(getMe());
}
/**
* {@inheritDoc}
*/
@Override
public String withdrawFunds(String currency, BigDecimal amount,
String address) throws ExchangeException,
NotAvailableFromExchangeException,
NotYetImplementedForExchangeException, IOException {
throw new NotAvailableFromExchangeException();
}
/**
* {@inheritDoc}
*/
@Override
public String requestDepositAddress(String currency, String... args)
throws ExchangeException, NotAvailableFromExchangeException,
NotYetImplementedForExchangeException, IOException {
throw new NotAvailableFromExchangeException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy