Skip to content

Commit

Permalink
Accept live UniverseProvider returning null (#8222)
Browse files Browse the repository at this point in the history
- Similar to HistoryProviders and Live DataQueueHandler calls, adjust
  live Universe provider manager to handle null returned values
  • Loading branch information
Martin-Molinero authored Jul 23, 2024
1 parent 050030b commit 2df58bb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Engine/DataFeeds/DataQueueHandlerManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,14 @@ public IEnumerable<Symbol> LookupSymbols(Symbol symbol, bool includeExpired, str
{
foreach (var dataHandler in GetUniverseProviders())
{
var result = dataHandler.LookupSymbols(symbol, includeExpired, securityCurrency).ToList();
var symbols = dataHandler.LookupSymbols(symbol, includeExpired, securityCurrency);
if (symbols == null)
{
// the universe provider does not support it
continue;
}

var result = symbols.ToList();
if (result.Any())
{
return result;
Expand Down

0 comments on commit 2df58bb

Please sign in to comment.