1 package org.oxerr.chbtc.service.polling;
2
3 import java.io.IOException;
4 import java.util.List;
5
6 import org.oxerr.chbtc.CHBTCExchange;
7
8 import com.xeiam.xchange.Exchange;
9 import com.xeiam.xchange.ExchangeSpecification;
10 import com.xeiam.xchange.currency.CurrencyPair;
11 import com.xeiam.xchange.service.polling.BasePollingExchangeService;
12 import com.xeiam.xchange.service.polling.BasePollingService;
13
14 public class CHBTCBasePollingService extends BasePollingExchangeService
15 implements BasePollingService {
16
17 private final List<CurrencyPair> symbols;
18
19 @SuppressWarnings("unchecked")
20 protected CHBTCBasePollingService(Exchange exchange) {
21 super(exchange);
22 ExchangeSpecification spec = exchange.getExchangeSpecification();
23 symbols = (List<CurrencyPair>) spec
24 .getExchangeSpecificParametersItem(
25 CHBTCExchange.SYMBOLS_PARAMETER);
26 }
27
28
29
30
31 @Override
32 public List<CurrencyPair> getExchangeSymbols() throws IOException {
33 return symbols;
34 }
35
36 }