fix a typo, and remove all unnecessary semicolumns in Python (#5795)
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
Regression Tests / build (push) Has been cancelled
Build & Test Lean / build (push) Has been cancelled
This commit is contained in:
@@ -61,5 +61,5 @@ class LongOnlyAlphaStreamAlgorithm(QCAlgorithm):
|
||||
def OnOrderEvent(self, orderEvent):
|
||||
if orderEvent.Status == OrderStatus.Filled:
|
||||
if self.Securities[orderEvent.Symbol].Holdings.IsShort:
|
||||
raise ValueError("Invalid position, should not be short");
|
||||
raise ValueError("Invalid position, should not be short")
|
||||
self.Debug(orderEvent)
|
||||
|
||||
Reference in New Issue
Block a user