public EMAEcoIndexManager(ElasticApiUrlHolder.ExchangeName exchangeName = ElasticApiUrlHolder.ExchangeName.Test)
 {
     if (exchangeName != ElasticApiUrlHolder.ExchangeName.Test)
     {
         _exchangeName  = exchangeName;
         _elasticClient = new ElasticDatabaseClient(ConfigurationProvider.GetConfigurationByName(ConfigurationNameHolder.ElasticApiUrl, ""), _exchangeName);
     }
 }
Exemplo n.º 2
0
 public CexMarketManager()
 {
     _cexApiClient            = new CexApiClient(ConfigurationProvider.GetConfigurationByName(ConfigurationNameHolder.CexApiUrl, ""));
     _elasticClient           = new ElasticDatabaseClient(ConfigurationProvider.GetConfigurationByName(ConfigurationNameHolder.ElasticApiUrl, ""), ElasticApiUrlHolder.ExchangeName.CEX);
     _coinMonitoringApiClient = new CoinMonitoringApiClient(ConfigurationProvider.GetConfigurationByName(ConfigurationNameHolder.CoinMonitoringApi, ""));
     _rsiManager = new RSIEcoIndexManager(ElasticApiUrlHolder.ExchangeName.CEX);
     _emaManager = new EMAEcoIndexManager(ElasticApiUrlHolder.ExchangeName.CEX);
     _forceIndexEcoIndexManager = new ForceIndexEcoIndexManager(ElasticApiUrlHolder.ExchangeName.CEX);
 }