ConceptsEvents
Nightly docs
These docs track unreleased changes and may change without notice. Their code examples can use APIs that the latest release lacks, so run them with a development wheel or switch to the latest release docs.
OrderEmulated
OrderEmulated records that the OrderEmulator has taken an order under local emulation. The
emulator applies the event to the order, updates the Cache, and publishes it on the MessageBus.
Typical transition: INITIALIZED -> EMULATED. Handler: on_order_emulated.
Fields
OrderEmulated exposes only the
common Python order event fields.
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 records that the Nautilus system cannot submit an otherwise valid order, for example because of a risk limit or an unsupported feature. The...
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...