OrderEmulated
OrderEmulated represents an order having become emulated by the Nautilus system. The
ExecutionEngine applies it to the order, updates the Cache, and publishes it on the
MessageBus. It fires when the OrderEmulator takes an order under local emulation.
Transition: INITIALIZED -> EMULATED. Handler: on_order_emulated.
Fields
OrderEmulated carries only the common order event fields. On this event, venue_order_id and account_id are
both None, reconciliation is always False, and ts_event equals ts_init.
Example
Reading the event in a strategy handler:
def on_order_emulated(self, event: OrderEmulated) -> None:
self.log.info(f"Order {event.client_order_id} is now emulated locally")Related guides
- Events - Event categories, dispatch, and the common order event fields.
- Emulated orders - The local emulation lifecycle.
OrderDenied
OrderDenied represents an order having been denied by the Nautilus system. The ExecutionEngine applies it to the order, updates the Cache, and publishes it...
OrderReleased
OrderReleased represents an order having been released from the OrderEmulator. The ExecutionEngine applies it to the order, updates the Cache, and publishes...