More Python syntax checks and improvements (#8937)
* More python syntax checks * More changes * More changes * Make PythonConsolidator derive from IDataConsolidator * More changes * More changes * Update python syntax check accepted rate * Update Update python syntax check accepted rate * Cleanup * Cleanup
This commit is contained in:
@@ -52,7 +52,7 @@ class StopLimitOrderRegressionAlgorithm(QCAlgorithm):
|
||||
|
||||
def on_order_event(self, order_event: OrderEvent):
|
||||
if order_event.status == OrderStatus.FILLED:
|
||||
order: StopLimitOrder = self.transactions.get_order_by_id(order_event.order_id)
|
||||
order = self.transactions.get_order_by_id(order_event.order_id)
|
||||
if not order.stop_triggered:
|
||||
raise AssertionError("StopLimitOrder StopTriggered should haven been set if the order filled.")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user