com.xeiam.xchange.okcoin.service.polling.OkCoinFuturesAccountService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-okcoin Show documentation
Show all versions of xchange-okcoin Show documentation
XChange implementation for OKCoin
package com.xeiam.xchange.okcoin.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.exceptions.NotAvailableFromExchangeException;
import com.xeiam.xchange.okcoin.OkCoinAdapters;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
public class OkCoinFuturesAccountService extends OkCoinAccountServiceRaw implements PollingAccountService {
/**
* Constructor
*
* @param exchange
*/
public OkCoinFuturesAccountService(Exchange exchange) {
super(exchange);
}
@Override
public AccountInfo getAccountInfo() throws IOException {
return OkCoinAdapters.adaptAccountInfo(getFutureUserInfo());
}
@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();
}
}