public void Load(ITransformationResult transformation) { var result = transformation as OneMinuteTransformationResult; _repo.Insert(Periods.OneMinute, result.Pair, result.OneMinuteData); foreach (var period in Enum.GetValues(typeof(Periods)).Cast <Periods>().Where(x => ((x != Periods.NotSet) && (x != Periods.OneMinute)))) { _repo.Insert(period, result.Pair, Binner.Bin(result.OneMinuteData, period, TimeZoneInfo.Utc)); } _repo.SaveChanges(); }
public void Load(ITransformationResult transformation) { var result = transformation as TransformationResult; _repo.Insert(result.ToFinancialData().ToList()); }