Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions QuantConnect.IQFeed/IQFeedDataDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/// <summary>
Expand Down
Loading