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
+3 -3
View File
@@ -29,9 +29,9 @@ class BrokerageModelAlgorithm(QCAlgorithm):
self.add_equity("SPY", Resolution.SECOND)
# there's two ways to set your brokerage model. The easiest would be to call
# SetBrokerageModel( BrokerageName ); // BrokerageName is an enum
# SetBrokerageModel(BrokerageName.INTERACTIVE_BROKERS_BROKERAGE);
# SetBrokerageModel(BrokerageName.DEFAULT);
# self.set_brokerage_model( BrokerageName ) # BrokerageName is an enum
# self.set_brokerage_model(BrokerageName.INTERACTIVE_BROKERS_BROKERAGE)
# self.set_brokerage_model(BrokerageName.DEFAULT)
# the other way is to call SetBrokerageModel( IBrokerageModel ) with your
# own custom model. I've defined a simple extension to the default brokerage