Esempio n. 1
0
  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);
    this.pollingMarketDataService = new BTCChinaPollingMarketDataService(exchangeSpecification);
    this.pollingTradeService = new BTCChinaPollingTradeService(exchangeSpecification);
    this.pollingAccountService = new BTCChinaPollingAccountService(exchangeSpecification);
  }
Esempio n. 2
0
  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);

    pollingMarketDataService = new BitVcMarketDataService(this);
    if (exchangeSpecification.getApiKey() != null) {
      if ((Boolean) exchangeSpecification.getExchangeSpecificParametersItem(USE_HUOBI)) {
        pollingAccountService = new HuobiAccountService(this);
        pollingTradeService = new BitVcTradeService(this);

      } else {

        pollingAccountService = new BitVcAccountService(this);
        pollingTradeService = new BitVcTradeService(this);
      }
    }
  }