org.oxerr.huobi.rest.service.polling.HuobiBasePollingService 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 static org.oxerr.huobi.rest.HuobiExchange.SYMBOLS_PARAMETER;
import java.util.List;
import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.ExchangeSpecification;
import com.xeiam.xchange.currency.CurrencyPair;
import com.xeiam.xchange.service.BaseExchangeService;
import com.xeiam.xchange.service.polling.BasePollingService;
public class HuobiBasePollingService extends BaseExchangeService implements
BasePollingService {
private final List symbols;
@SuppressWarnings("unchecked")
protected HuobiBasePollingService(Exchange exchange) {
super(exchange);
ExchangeSpecification spec = exchange.getExchangeSpecification();
symbols = (List) spec
.getExchangeSpecificParametersItem(SYMBOLS_PARAMETER);
}
/**
* {@inheritDoc}
*/
@Override
public List getExchangeSymbols() {
return symbols;
}
}