19 using System.Collections.Generic;
21 using System.Text.RegularExpressions;
30 private static readonly Regex _brokerageHistoryProvider =
new(
"QuantConnect.Lean.Engine.HistoricalData.([a-zA-z]+)HistoryProvider", RegexOptions.Compiled);
38 if (historyProviderName !=
"QuantConnect.Lean.Engine.HistoricalData.BrokerageHistoryProvider"
39 && historyProviderName !=
"QuantConnect.Lean.Engine.HistoricalData.SubscriptionDataReaderHistoryProvider")
41 var matches = _brokerageHistoryProvider.Match(historyProviderName);
44 brokerageName = matches.Groups[1].Value;
73 throw new ArgumentNullException(nameof(request));
78 var isReturnHistoryRequest =
default(
bool);
79 foreach (var tickerDateRange
in mapFileProvider.RetrieveSymbolHistoricalDefinitionsInDateRange(request.
Symbol, request.
StartTimeLocal, request.
EndTimeLocal))
81 isReturnHistoryRequest =
true;
86 tickerDateRange.StartDateTimeLocal.ConvertToUtc(request.
ExchangeHours.TimeZone),
87 tickerDateRange.EndDateTimeLocal.ConvertToUtc(request.
ExchangeHours.TimeZone)
91 if (!isReturnHistoryRequest)