Skip to content

Commit

Permalink
Fix QuantBook fundamental unit test (#7537)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin-Molinero authored Oct 26, 2023
1 parent 2e2136f commit 88c7f7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Research/QuantBookFundamentalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public void FundamentalDataEndTime(DateTime startDate, DateTime endDate)
new object[] {new List<string> {"AAPL"}, null, 13.2725m, new Func<FineFundamental, double>(fundamental => fundamental.ValuationRatios.PERatio) },
new object[] {new List<string> {"AAPL"}, "ValuationRatios.PERatio", 13.2725m},
new object[] {Symbol.Create("IBM", SecurityType.Equity, Market.USA), "ValuationRatios.BookValuePerShare", 22.5177},
new object[] {new List<Symbol> {Symbol.Create("AIG", SecurityType.Equity, Market.USA)}, "FinancialStatements.NumberOfShareHolders", 36319}
new object[] {new List<Symbol> {Symbol.Create("AIG", SecurityType.Equity, Market.USA)}, "FinancialStatements.NumberOfShareHolders.Value", 36319}
};

// Different requests that should return null
Expand Down Expand Up @@ -262,7 +262,7 @@ private dynamic Get(DateTime time, SecurityIdentifier securityIdentifier, Fundam
return 13.2725d;
case "ValuationRatios_BookValuePerShare":
return 22.5177d;
case "FinancialStatements_NumberOfShareHolders":
case "FinancialStatements_NumberOfShareHolders_TwelveMonths":
return 36319;
}
return null;
Expand Down

0 comments on commit 88c7f7f

Please sign in to comment.