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:
Jhonathan Abreu
2025-08-21 12:47:38 -04:00
committed by GitHub
parent a3ad12e7e0
commit 50f8633e90
4 changed files with 99 additions and 8 deletions
@@ -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.")