pub trait LiveExecutionClientExt: ExecutionClient {
// Required methods
fn get_message_channel(&self) -> UnboundedSender<ExecutionEvent>;
fn get_clock(&self) -> Ref<'_, dyn Clock>;
// Provided methods
fn send_order_event(&self, event: OrderEventAny) { ... }
fn send_order_status_report(&self, report: OrderStatusReport) { ... }
fn send_fill_report(&self, report: FillReport) { ... }
fn send_position_status_report(&self, report: PositionStatusReport) { ... }
fn send_mass_status(&self, mass_status: ExecutionMassStatus) { ... }
}
Expand description
Extension trait for live execution clients with message channel support.
Required Methods§
Sourcefn get_message_channel(&self) -> UnboundedSender<ExecutionEvent>
fn get_message_channel(&self) -> UnboundedSender<ExecutionEvent>
Gets the message channel for sending execution events.
Provided Methods§
Sourcefn send_order_event(&self, event: OrderEventAny)
fn send_order_event(&self, event: OrderEventAny)
Sends an order event to the execution engine.
Sourcefn send_order_status_report(&self, report: OrderStatusReport)
fn send_order_status_report(&self, report: OrderStatusReport)
Sends an order status report to the execution engine.
Sourcefn send_fill_report(&self, report: FillReport)
fn send_fill_report(&self, report: FillReport)
Sends a fill report to the execution engine.
Sourcefn send_position_status_report(&self, report: PositionStatusReport)
fn send_position_status_report(&self, report: PositionStatusReport)
Sends a position status report to the execution engine.
Sourcefn send_mass_status(&self, mass_status: ExecutionMassStatus)
fn send_mass_status(&self, mass_status: ExecutionMassStatus)
Sends a mass status report to the execution engine.