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 the Cache, and publishes it on the
MessageBus before routing the order onward.
Typical transition: EMULATED -> RELEASED. Handler: on_order_released.
Fields
Beyond the common Python order event fields,
OrderReleased carries:
| Field | Python type | Required/default | Description |
|---|---|---|---|
released_price | Price | Required | The price which released the order from the emulator. |
Example
Reading the event in a strategy handler:
def on_order_released(self, event: OrderReleased) -> None:
self.log.info(
f"Order {event.client_order_id} released at {event.released_price}",
)Related guides
- Events - Event categories, dispatch, and the common order event fields.
- Emulated orders - The local emulation lifecycle.
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...
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...