20 using System.Collections.Generic;
29 private readonly Dictionary<string, List<IndicatorDataPoint>> _pointsPerName;
34 public List<IndicatorDataPoint>
Current =>
this[
"current"];
42 public IndicatorHistory(List<IndicatorDataPoints> indicatorsDataPointsByTime, List<InternalIndicatorValues> indicatorsDataPointPerProperty, Lazy<PyObject> dataframe)
43 : base(indicatorsDataPointsByTime, dataframe)
46 _pointsPerName = indicatorsDataPointPerProperty.DistinctBy(x => x.Name.ToLowerInvariant()).ToDictionary(x => x.Name.ToSnakeCase(), x => x.Values);
52 public List<IndicatorDataPoint>
this[
string name]
56 if (_pointsPerName.TryGetValue(name.ToSnakeCase().ToLowerInvariant(), out var result))