All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.oxerr.peatio.rest.service.polling.PeatioAccountService Maven / Gradle / Ivy

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