From c82573a2bc615cf27d074ed0d8c34c2b1f4ef8c4 Mon Sep 17 00:00:00 2001 From: Jhonathan Abreu Date: Wed, 15 May 2024 09:11:52 -0400 Subject: [PATCH] Update Pythonnet version (#8021) * Update regression algorithm to reproduce GH issue #8011 * Update pythonnet version to 2.0.37 --- Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj | 2 +- Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj | 2 +- Algorithm.Python/CustomDataPropertiesRegressionAlgorithm.py | 4 ++-- Algorithm.Python/QuantConnect.Algorithm.Python.csproj | 2 +- Algorithm/QuantConnect.Algorithm.csproj | 2 +- AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj | 2 +- Common/QuantConnect.csproj | 2 +- Engine/QuantConnect.Lean.Engine.csproj | 2 +- Indicators/QuantConnect.Indicators.csproj | 2 +- Report/QuantConnect.Report.csproj | 2 +- Research/QuantConnect.Research.csproj | 2 +- Tests/QuantConnect.Tests.csproj | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj b/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj index aef6b3508511..ad5ba354e6db 100644 --- a/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj +++ b/Algorithm.CSharp/QuantConnect.Algorithm.CSharp.csproj @@ -34,7 +34,7 @@ portable - + diff --git a/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj b/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj index ea3d4e608b32..b7466e0fe946 100644 --- a/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj +++ b/Algorithm.Framework/QuantConnect.Algorithm.Framework.csproj @@ -29,7 +29,7 @@ LICENSE - + diff --git a/Algorithm.Python/CustomDataPropertiesRegressionAlgorithm.py b/Algorithm.Python/CustomDataPropertiesRegressionAlgorithm.py index fa37b5e6cb64..c692fb653c4d 100644 --- a/Algorithm.Python/CustomDataPropertiesRegressionAlgorithm.py +++ b/Algorithm.Python/CustomDataPropertiesRegressionAlgorithm.py @@ -27,14 +27,14 @@ def initialize(self): self.set_start_date(2011,9,13) # Set Start Date self.set_end_date(2015,12,1) # Set End Date self.set_cash(100000) # Set Strategy Cash - + # Define our custom data properties and exchange hours self.ticker = 'BTC' properties = SymbolProperties("Bitcoin", "USD", 1, 0.01, 0.01, self.ticker) exchange_hours = SecurityExchangeHours.always_open(TimeZones.NEW_YORK) # Add the custom data to our algorithm with our custom properties and exchange hours - self.bitcoin = self.add_data(Bitcoin, self.ticker, properties, exchange_hours) + self.bitcoin = self.add_data(Bitcoin, self.ticker, properties, exchange_hours, leverage=1, fill_forward=False) # Verify our symbol properties were changed and loaded into this security if self.bitcoin.symbol_properties != properties : diff --git a/Algorithm.Python/QuantConnect.Algorithm.Python.csproj b/Algorithm.Python/QuantConnect.Algorithm.Python.csproj index ae8cac028215..05fe50957579 100644 --- a/Algorithm.Python/QuantConnect.Algorithm.Python.csproj +++ b/Algorithm.Python/QuantConnect.Algorithm.Python.csproj @@ -39,7 +39,7 @@ - + diff --git a/Algorithm/QuantConnect.Algorithm.csproj b/Algorithm/QuantConnect.Algorithm.csproj index ccfb62bc0880..ae2afdc47c92 100644 --- a/Algorithm/QuantConnect.Algorithm.csproj +++ b/Algorithm/QuantConnect.Algorithm.csproj @@ -29,7 +29,7 @@ LICENSE - + diff --git a/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj b/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj index 39429cfb0965..58bc95383eba 100644 --- a/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj +++ b/AlgorithmFactory/QuantConnect.AlgorithmFactory.csproj @@ -28,7 +28,7 @@ LICENSE - + diff --git a/Common/QuantConnect.csproj b/Common/QuantConnect.csproj index 9b6f4512eb8c..24766c03b7b1 100644 --- a/Common/QuantConnect.csproj +++ b/Common/QuantConnect.csproj @@ -34,7 +34,7 @@ - + diff --git a/Engine/QuantConnect.Lean.Engine.csproj b/Engine/QuantConnect.Lean.Engine.csproj index 7a566c95cdc0..76bce178b307 100644 --- a/Engine/QuantConnect.Lean.Engine.csproj +++ b/Engine/QuantConnect.Lean.Engine.csproj @@ -42,7 +42,7 @@ - + diff --git a/Indicators/QuantConnect.Indicators.csproj b/Indicators/QuantConnect.Indicators.csproj index 2898d3a7b3e3..651211c43d7e 100644 --- a/Indicators/QuantConnect.Indicators.csproj +++ b/Indicators/QuantConnect.Indicators.csproj @@ -31,7 +31,7 @@ - + diff --git a/Report/QuantConnect.Report.csproj b/Report/QuantConnect.Report.csproj index d048528fb308..172ed4c5cdf4 100644 --- a/Report/QuantConnect.Report.csproj +++ b/Report/QuantConnect.Report.csproj @@ -41,7 +41,7 @@ LICENSE - + diff --git a/Research/QuantConnect.Research.csproj b/Research/QuantConnect.Research.csproj index 1a34cdd32d64..6f4ff944111e 100644 --- a/Research/QuantConnect.Research.csproj +++ b/Research/QuantConnect.Research.csproj @@ -33,7 +33,7 @@ - + diff --git a/Tests/QuantConnect.Tests.csproj b/Tests/QuantConnect.Tests.csproj index a13c26c736d4..b4460a55de73 100644 --- a/Tests/QuantConnect.Tests.csproj +++ b/Tests/QuantConnect.Tests.csproj @@ -32,7 +32,7 @@ - +