diff --git a/Resources/datasets/fundamentals/historical-data.html b/Resources/datasets/fundamentals/historical-data.html index fde98e11ce..2294e9b40a 100644 --- a/Resources/datasets/fundamentals/historical-data.html +++ b/Resources/datasets/fundamentals/historical-data.html @@ -1,26 +1,23 @@ -
To get historical fundamental data, call the History
method. If you pass one Symbol
object, the method returns a list of Fundamental
objects in chronological order. If you pass a list of Symbol
objects, the method returns a list of Dictionary<Symbol, Fundamental>
objects in chronological orderDataFrame.
To get historical fundamental data, call the History
method. The return type depends on how you call the method.
// Single asset -var ibm = QuantConnect.Symbol.Create("IBM", SecurityType.Equity, Market.USA); -var ibmHistory = History<Fundamental>(ibm, new TimeSpan(30, 0, 0, 0)).ToList(); +var ibm = QuantConnect.Symbol.Create("IBM", SecurityType.Equity, Market.USA); -// Multiple assets -var nb = QuantConnect.Symbol.Create("NB", SecurityType.Equity, Market.USA); -var history= History<Fundamentals>(new List-{ nb, ibm }, new TimeSpan(30, 0, 0, 0)).ToList(); +// Fundamental objects +var fundamentalHistory = History<Fundamental>(ibm, TimeSpan.FromDays(30)); -// All assets -var allHistory = History<Fundamentals>(Securities.Keys, new TimeSpan(30, 0, 0, 0)).ToList(); # Single asset -ibm = QuantConnect.Symbol.Create("IBM", SecurityType.Equity, Market.USA) -ibm_history = self.History(Fundamental, ibm, timedelta(30)) +// Fundamentals objects for all US Equities (including delisted companies) +var fundamentalsHistory = History<Fundamentals>(TimeSpan.FromDays(30));+ibm = Symbol.Create("IBM", SecurityType.Equity, Market.USA) -# Multiple assets -nb = QuantConnect.Symbol.Create("NB", SecurityType.Equity, Market.USA); -history = self.History(Fundamentals, [ nb, ibm ], timedelta(30)) +# DataFrame objects +df_history = qb.History(Fundamental, ibm, timedelta(30)) -# All assets -all_history = self.History(Fundamentals, timedelta(30))+# Fundamental objects +fundamental_history= self.History[Fundamental](ibm, timedelta(30)) + +# Fundamentals objects for all US Equities (including delisted companies) +fundamentals_history = self.History[Fundamentals](timedelta(30))
For more information about history requests, see History Requests.
+For more information about historical fundamental data, see Equity Fundamental Data.