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 on the
MessageBus. It fires when an otherwise valid order cannot be submitted, for example due
to a risk limit or an unsupported feature.
Typical transition: INITIALIZED -> DENIED. Handler: on_order_denied.
Fields
Beyond the common Python order event fields,
OrderDenied carries:
| Field | Python type | Required/default | Description |
|---|---|---|---|
reason | str | Required | The order denied reason. |
Example
Reading the event in a strategy handler:
def on_order_denied(self, event: OrderDenied) -> None:
self.log.warning(f"Order {event.client_order_id} denied: {event.reason}")Related guides
OrderInitialized
OrderInitialized is the seed event for a new order. It carries enough information to send the order over the wire and reconstruct it with the same...
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...