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

OrderAccepted

OrderAccepted represents an order having been accepted by the trading venue. The ExecutionEngine applies it to the order, updates the Cache, and publishes it on the MessageBus. It fires when the venue acknowledges the order as received and valid (often a FIX NEW OrdStatus).

Typical transition: SUBMITTED -> ACCEPTED. Handler: on_order_accepted.

Fields

Beyond the common Python order event fields, OrderAccepted carries:

FieldPython typeRequired/defaultDescription
venue_order_idVenueOrderIdRequiredThe venue‑assigned order identifier.
account_idAccountIdRequiredThe account associated with the order.
reconciliationboolRequiredIf generated during reconciliation.

Example

Reading the event in a strategy handler:

def on_order_accepted(self, event: OrderAccepted) -> None:
    self.log.info(
        f"Order {event.client_order_id} accepted as {event.venue_order_id}",
    )
  • Events - Event categories, dispatch, and the common order event fields.
  • Orders - Order types and the state machine.

On this page