diff --git a/project-templates/csharp/common/research.ipynb b/project-templates/csharp/common/research.ipynb index c311163c4e..33f79b8155 100644 --- a/project-templates/csharp/common/research.ipynb +++ b/project-templates/csharp/common/research.ipynb @@ -81,20 +81,7 @@ } }, "outputs": [], - "source": [ - "// Get historical data for a bank sector ETF and some banking companies over 2021.\n", - "var qb = new QuantBook();\n", - "var tickers = new[]\n", - "{\n", - " \"XLF\", // Financial Select Sector SPDR Fund\n", - " \"COF\", // Capital One Financial Corporation\n", - " \"GS\", // Goldman Sachs Group, Inc.\n", - " \"JPM\", // J P Morgan Chase & Co\n", - " \"WFC\" // Wells Fargo & Company\n", - "};\n", - "var symbols = tickers.Select(ticker => qb.AddEquity(ticker, Resolution.Daily).Symbol).ToList();\n", - "var history = qb.History(symbols, new DateTime(2021, 1, 1), new DateTime(2022, 1, 1)).ToList();" - ] + "source": "// Get historical data for a bank sector ETF and some banking companies over 2021.\nvar qb = new QuantBook();\nvar tickers = new[]\n{\n \"XLF\", // Financial Select Sector SPDR Fund\n \"COF\", // Capital One Financial Corporation\n \"GS\", // Goldman Sachs Group, Inc.\n \"JPM\", // J P Morgan Chase & Co\n \"WFC\" // Wells Fargo & Company\n};\nvar symbols = tickers.Select(ticker => qb.AddEquity(ticker).Symbol).ToList();\nvar history = qb.History(symbols, new DateTime(2021, 1, 1), new DateTime(2022, 1, 1)).ToList();" }, { "cell_type": "markdown", diff --git a/project-templates/csharp/equities-universe/Main.cs b/project-templates/csharp/equities-universe/Main.cs index 83265529fa..d24a0332d5 100644 --- a/project-templates/csharp/equities-universe/Main.cs +++ b/project-templates/csharp/equities-universe/Main.cs @@ -85,7 +85,7 @@ public override void Initialize() SetCash(100000); Settings.SeedInitialPrices = true; UniverseSettings.Leverage = 2.0m; - UniverseSettings.Resolution = Resolution.Daily; + UniverseSettings.Resolution = Resolution.Minute; _universe = AddUniverse(coarse => { diff --git a/project-templates/python/ai/main.py b/project-templates/python/ai/main.py index cfc4fe067e..0f97686c46 100644 --- a/project-templates/python/ai/main.py +++ b/project-templates/python/ai/main.py @@ -12,7 +12,7 @@ def initialize(self) -> None: self.set_cash(100_000) self.settings.seed_initial_prices = True # Request SPY data for model training, prediction and trading. - self._spy = self.add_equity("SPY", Resolution.DAILY) + self._spy = self.add_equity("SPY") # Hyperparameters to create the MLP model. num_factors = 5 num_neurons_1 = 10 diff --git a/project-templates/python/common/research.ipynb b/project-templates/python/common/research.ipynb index 763f0942f3..1d58d40329 100644 --- a/project-templates/python/common/research.ipynb +++ b/project-templates/python/common/research.ipynb @@ -34,17 +34,7 @@ "execution_count": null, "metadata": {}, "outputs": [], - "source": [ - "# Get historical data for a bank sector ETF and some banking companies over 2021.\n", - "qb = QuantBook()\n", - "tickers = [\"XLF\", # Financial Select Sector SPDR Fund\n", - " \"COF\", # Capital One Financial Corporation\n", - " \"GS\", # Goldman Sachs Group, Inc.\n", - " \"JPM\", # J P Morgan Chase & Co\n", - " \"WFC\"] # Wells Fargo & Company\n", - "symbols = [qb.add_equity(ticker, Resolution.DAILY).symbol for ticker in tickers]\n", - "history = qb.history(symbols, datetime(2021, 1, 1), datetime(2022, 1, 1))" - ] + "source": "# Get historical data for a bank sector ETF and some banking companies over 2021.\nqb = QuantBook()\ntickers = [\"XLF\", # Financial Select Sector SPDR Fund\n \"COF\", # Capital One Financial Corporation\n \"GS\", # Goldman Sachs Group, Inc.\n \"JPM\", # J P Morgan Chase & Co\n \"WFC\"] # Wells Fargo & Company\nsymbols = [qb.add_equity(ticker).symbol for ticker in tickers]\nhistory = qb.history(symbols, datetime(2021, 1, 1), datetime(2022, 1, 1))" }, { "cell_type": "markdown", diff --git a/project-templates/python/equities-universe/main.py b/project-templates/python/equities-universe/main.py index 2149c0a4ed..cb14ab1f85 100644 --- a/project-templates/python/equities-universe/main.py +++ b/project-templates/python/equities-universe/main.py @@ -14,7 +14,7 @@ def initialize(self) -> None: self.set_cash(100000) self.settings.seed_initial_prices = True self.universe_settings.leverage = 2 - self.universe_settings.resolution = Resolution.DAILY + self.universe_settings.resolution = Resolution.MINUTE def _filter(fundamentals: List[Fundamental]) -> List[Symbol]: selected = {}