20 using System.Collections.Generic;
71 var marketHoursEntry = marketHoursDataBase.GetEntry(canonicalSymbol,
new[] { universeType });
77 var history = (List<Slice>)
null;
79 while ((history ==
null || history.Count == 0) && periods <= 3)
82 extendedMarketHours:
false, marketHoursEntry.DataTimeZone);
84 startDate.ConvertToUtc(marketHoursEntry.ExchangeHours.TimeZone),
85 date.ConvertToUtc(marketHoursEntry.ExchangeHours.TimeZone),
89 marketHoursEntry.ExchangeHours,
90 marketHoursEntry.DataTimeZone,
99 var symbols = history ==
null || history.Count == 0
100 ? Enumerable.Empty<
Symbol>()
101 : history.Take(1).GetUniverseData().SelectMany(x => x.Values.Single()).Select(x => x.Symbol);
105 symbols = symbols.Where(symbol => symbol.SecurityType.IsOption());
108 return symbols.Where(symbol => symbol.ID.Date >= date.Date);
116 return symbol.
ID.
Date.Date < date.Date;