LiveExecutionClientExt

Trait LiveExecutionClientExt 

Source
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§

Source

fn get_message_channel(&self) -> UnboundedSender<ExecutionEvent>

Gets the message channel for sending execution events.

Source

fn get_clock(&self) -> Ref<'_, dyn Clock>

Gets the clock for timestamp generation.

Provided Methods§

Source

fn send_order_event(&self, event: OrderEventAny)

Sends an order event to the execution engine.

Source

fn send_order_status_report(&self, report: OrderStatusReport)

Sends an order status report to the execution engine.

Source

fn send_fill_report(&self, report: FillReport)

Sends a fill report to the execution engine.

Source

fn send_position_status_report(&self, report: PositionStatusReport)

Sends a position status report to the execution engine.

Source

fn send_mass_status(&self, mass_status: ExecutionMassStatus)

Sends a mass status report to the execution engine.

Implementors§