OrderSubmitted
OrderSubmitted represents an order having been submitted by the system to the trading
venue. The ExecutionEngine applies it to the order, updates the Cache, and publishes
it on the MessageBus. It fires when the system sends the order to the venue and awaits
acknowledgement.
Transition: INITIALIZED / RELEASED -> SUBMITTED. Handler: on_order_submitted.
Fields
OrderSubmitted carries only the common order event fields. On this event, account_id is populated,
venue_order_id is not yet assigned (None), and reconciliation is always False.
Example
Reading the event in a strategy handler:
def on_order_submitted(self, event: OrderSubmitted) -> None:
self.log.info(f"Order {event.client_order_id} submitted ({event.account_id})")Related guides
OrderReleased
OrderReleased represents an order having been released from the OrderEmulator. The ExecutionEngine applies it to the order, updates the Cache, and publishes...
OrderAccepted
OrderAccepted represents an order having been accepted by the trading venue. The ExecutionEngine applies it to the order, updates the Cache, and publishes...