コード例 #1
0
ファイル: BTCChinaExchange.java プロジェクト: kazcw/XChange
  @Override
  public void applySpecification(ExchangeSpecification exchangeSpecification) {

    super.applySpecification(exchangeSpecification);
    this.pollingMarketDataService = new BTCChinaPollingMarketDataService(exchangeSpecification);
    this.pollingTradeService = new BTCChinaPollingTradeService(exchangeSpecification);
    this.pollingAccountService = new BTCChinaPollingAccountService(exchangeSpecification);
  }
コード例 #2
0
ファイル: BitVcExchange.java プロジェクト: badzso/XChange
  @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);
      }
    }
  }