private Domain.Dtos.EcoIndex.EcoIndex GetLastEmaValue(ExchangePairTypeEnum exchangePairTypeEnum)
        {
            List <Domain.Dtos.EcoIndex.EcoIndex> ecoIndex = _elasticClient.GetLastEcoIndex(_exchangeName.ToString().ToLower() + "_eco_index", EcoIndexEnum.EMA, ResolvePairTypeName(exchangePairTypeEnum));

            return(ecoIndex?.FirstOrDefault());
        }
Example #2
0
        private List <Domain.Dtos.EcoIndex.EcoIndex> GetLastEmaValues(ExchangePairTypeEnum exchangePairTypeEnum)
        {
            List <Domain.Dtos.EcoIndex.EcoIndex> ecoIndexes = _elasticClient.GetLastEcoIndex(_exchangeName.ToString().ToLower() + "_eco_index", EcoIndexEnum.EMA, ResolvePairTypeName(exchangePairTypeEnum), 2);

            return(ecoIndexes);
        }