Skip to content

Commit

Permalink
fix bug on universe alternative data class
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisSzeto committed Oct 2, 2024
1 parent 7eab3d5 commit a43e246
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

public override void OnData(Slice data)
{
foreach (var dataPoint in data.Get&lt;QuiverCNBCs&gt;().SelectMany(x=> x.Value.OfType<QuiverCNBC>()))
foreach (var dataPoint in data.Get&lt;QuiverCNBCs&gt;().SelectMany(x=> x.Value.OfType&lt;QuiverCNBC&gt;()))
{
Debug($"{dataPoint.Symbol} traders at {data.Time}: {dataPoint.Traders}");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
AddUniverseOptions(universe, OptionFilterFunction);
}

private IEnumerable<Symbol> FundamentalFunction(IEnumerable<Fundamental> fundamental)
private IEnumerable&lt;Symbol&gt; FundamentalFunction(IEnumerable&lt;Fundamental&gt; fundamental)
{
return fundamental
.Where(f => !double.IsNaN(f.ValuationRatios.PERatio))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

public override void OnData(Slice data)
{
foreach (var dataPoint in data.Get&lt;QuiverCNBCs&gt;().SelectMany(x=> x.Value.OfType<QuiverCNBC>()))
foreach (var dataPoint in data.Get&lt;QuiverCNBCs&gt;().SelectMany(x=> x.Value.OfType&lt;QuiverCNBC&gt;()))
{
Debug($"{dataPoint.Symbol} traders at {data.Time}: {dataPoint.Traders}");
}
Expand Down

0 comments on commit a43e246

Please sign in to comment.