diff --git a/QuantConnect.IQFeed/IQFeedDataDownloader.cs b/QuantConnect.IQFeed/IQFeedDataDownloader.cs index fed6e07..6b99fcd 100644 --- a/QuantConnect.IQFeed/IQFeedDataDownloader.cs +++ b/QuantConnect.IQFeed/IQFeedDataDownloader.cs @@ -171,15 +171,8 @@ public IQFeedDataDownloader() blockingCollection.CompleteAdding(); }); - var historyResponses = blockingCollection.GetConsumingEnumerable(); - - // Validate if the collection contains at least one successful response from history. - if (!historyResponses.Any()) - { - return null; - } - - return historyResponses; + // Null when no contract returned any history, otherwise every history point, the first one included. + return blockingCollection.GetConsumingEnumerableOrNull(); } ///