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

com.xeiam.xchange.okcoin.service.polling.OkCoinBasePollingService Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package com.xeiam.xchange.okcoin.service.polling;

import java.util.List;

import com.xeiam.xchange.Exchange;
import com.xeiam.xchange.currency.CurrencyPair;
import com.xeiam.xchange.service.polling.BasePollingExchangeService;
import com.xeiam.xchange.service.polling.BasePollingService;

public class OkCoinBasePollingService extends BasePollingExchangeService implements BasePollingService {

  /** Set to true if international site should be used */
  protected final boolean useIntl;

  /**
   * Constructor
   *
   * @param exchange
   */
  public OkCoinBasePollingService(Exchange exchange) {

    super(exchange);

    useIntl = (Boolean) exchange.getExchangeSpecification().getExchangeSpecificParameters().get("Use_Intl");

  }

  @Override
  public List getExchangeSymbols() {

    return exchange.getMetaData().getCurrencyPairs();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy