LiveExecutionClient

Trait LiveExecutionClient 

Source
pub trait LiveExecutionClient: ExecutionClient {
    // Provided methods
    fn generate_order_status_report<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cmd: &'life1 GenerateOrderStatusReport,
    ) -> Pin<Box<dyn Future<Output = Result<Option<OrderStatusReport>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn generate_order_status_reports<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cmd: &'life1 GenerateOrderStatusReport,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<OrderStatusReport>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn generate_fill_reports<'life0, 'async_trait>(
        &'life0 self,
        cmd: GenerateFillReports,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<FillReport>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn generate_position_status_reports<'life0, 'life1, 'async_trait>(
        &'life0 self,
        cmd: &'life1 GeneratePositionReports,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<PositionStatusReport>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn generate_mass_status<'life0, 'async_trait>(
        &'life0 self,
        lookback_mins: Option<u64>,
    ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionMassStatus>>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Live execution client trait with async report generation methods.

Extends ExecutionClient with async methods for generating execution reports used by the ExecutionManager for reconciliation.

Provided Methods§

Source

fn generate_order_status_report<'life0, 'life1, 'async_trait>( &'life0 self, cmd: &'life1 GenerateOrderStatusReport, ) -> Pin<Box<dyn Future<Output = Result<Option<OrderStatusReport>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Generates a single order status report.

§Errors

Returns an error if report generation fails.

Source

fn generate_order_status_reports<'life0, 'life1, 'async_trait>( &'life0 self, cmd: &'life1 GenerateOrderStatusReport, ) -> Pin<Box<dyn Future<Output = Result<Vec<OrderStatusReport>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Generates multiple order status reports.

§Errors

Returns an error if report generation fails.

Source

fn generate_fill_reports<'life0, 'async_trait>( &'life0 self, cmd: GenerateFillReports, ) -> Pin<Box<dyn Future<Output = Result<Vec<FillReport>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Generates fill reports based on execution results.

§Errors

Returns an error if fill report generation fails.

Source

fn generate_position_status_reports<'life0, 'life1, 'async_trait>( &'life0 self, cmd: &'life1 GeneratePositionReports, ) -> Pin<Box<dyn Future<Output = Result<Vec<PositionStatusReport>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Generates position status reports.

§Errors

Returns an error if generation fails.

Source

fn generate_mass_status<'life0, 'async_trait>( &'life0 self, lookback_mins: Option<u64>, ) -> Pin<Box<dyn Future<Output = Result<Option<ExecutionMassStatus>>> + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Generates mass status for executions.

§Errors

Returns an error if status generation fails.

Implementors§