pep8 conversion of python algos #13 (#7955)

* t status
pep8 conversion

* Minor tweaks and rebase

* Various minor fixes

---------

Co-authored-by: Martin Molinero <martin.molinero1@gmail.com>
This commit is contained in:
Louis Szeto
2024-04-20 03:14:12 +08:00
committed by GitHub
parent d2669fb0c2
commit 08a3de9e2d
33 changed files with 312 additions and 312 deletions
@@ -31,14 +31,14 @@ class CustomDataBenchmarkRegressionAlgorithm(QCAlgorithm):
self.set_holdings("SPY", 1)
def on_end_of_algorithm(self):
security_benchmark = self.benchmark;
security_benchmark = self.benchmark
if security_benchmark.security.price == 0:
raise Exception("Security benchmark price was not expected to be zero")
class ExampleCustomData(PythonData):
def get_source(self, config, date, is_live):
source = "https://www.dl.dropboxusercontent.com/s/d83xvd7mm9fzpk0/path_to_my_csv_data.csv?dl=0";
source = "https://www.dl.dropboxusercontent.com/s/d83xvd7mm9fzpk0/path_to_my_csv_data.csv?dl=0"
return SubscriptionDataSource(source, SubscriptionTransportMedium.REMOTE_FILE)
def reader(self, config, line, date, is_live):