
org.oxerr.huobi.rest.service.polling.HuobiAccountService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of huobi-client-rest Show documentation
Show all versions of huobi-client-rest Show documentation
Client for <a href="https://www.huobi.com">Huobi</a> RESTful API.
The newest version!
package org.oxerr.huobi.rest.service.polling;
import java.io.IOException;
import java.math.BigDecimal;
import org.oxerr.huobi.rest.HuobiAdapters;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.dto.account.AccountInfo;
import com.xeiam.xchange.exceptions.NotAvailableFromExchangeException;
import com.xeiam.xchange.service.polling.account.PollingAccountService;
public class HuobiAccountService extends HuobiAccountServiceRaw implements
PollingAccountService {
public HuobiAccountService(Exchange exchange) {
super(exchange);
}
/**
* {@inheritDoc}
*/
@Override
public AccountInfo getAccountInfo() throws IOException {
return HuobiAdapters.adaptAccountInfo(getHUOBIAccountInfo());
}
/**
* {@inheritDoc}
*/
@Override
public String withdrawFunds(String currency, BigDecimal amount,
String address) {
throw new NotAvailableFromExchangeException();
}
/**
* {@inheritDoc}
*/
@Override
public String requestDepositAddress(String currency, String... args) {
throw new NotAvailableFromExchangeException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy