NautilusTrader
ConceptsEvents
These docs track the unreleased nightly build and may change without notice. Switch to the latest stable docs.

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:

FieldPython typeRequired/defaultDescription
account_idAccountIdRequiredThe 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})")
  • Events - Event categories, dispatch, and the common order event fields.
  • Orders - Order types and the state machine.

On this page