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.
Typical transition: INITIALIZED / RELEASED -> SUBMITTED. Handler: on_order_submitted.
Fields
Beyond the common Python order event fields,
OrderSubmitted carries:
| Field | Python type | Required/default | Description |
|---|---|---|---|
account_id | AccountId | Required | The account associated with the order. |
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 records that the OrderEmulator has released an order after its trigger condition was met. The emulator applies the event to the order, updates...
OrderAccepted
OrderAccepted represents an order having been accepted by the trading venue. The ExecutionEngine applies it to the order, updates the Cache, and publishes...