pub struct LiveExecEngineConfig {Show 26 fields
pub reconciliation: bool,
pub reconciliation_startup_delay_secs: f64,
pub reconciliation_lookback_mins: Option<u32>,
pub reconciliation_instrument_ids: Option<Vec<String>>,
pub filter_unclaimed_external_orders: bool,
pub filter_position_reports: bool,
pub filtered_client_order_ids: Option<Vec<String>>,
pub generate_missing_orders: bool,
pub inflight_check_interval_ms: u32,
pub inflight_check_threshold_ms: u32,
pub inflight_check_retries: u32,
pub own_books_audit_interval_secs: Option<f64>,
pub open_check_interval_secs: Option<f64>,
pub open_check_lookback_mins: Option<u32>,
pub open_check_threshold_ms: u32,
pub open_check_missing_retries: u32,
pub open_check_open_only: bool,
pub purge_closed_orders_interval_mins: Option<u32>,
pub purge_closed_orders_buffer_mins: Option<u32>,
pub purge_closed_positions_interval_mins: Option<u32>,
pub purge_closed_positions_buffer_mins: Option<u32>,
pub purge_account_events_interval_mins: Option<u32>,
pub purge_account_events_lookback_mins: Option<u32>,
pub purge_from_database: bool,
pub qsize: u32,
pub graceful_shutdown_on_exception: bool,
}
Expand description
Configuration for live execution engines.
Fields§
§reconciliation: bool
If reconciliation is active at start-up.
reconciliation_startup_delay_secs: f64
The delay (seconds) before starting reconciliation at startup.
reconciliation_lookback_mins: Option<u32>
The maximum lookback minutes to reconcile state for.
reconciliation_instrument_ids: Option<Vec<String>>
Specific instrument IDs to reconcile (if None, reconciles all).
filter_unclaimed_external_orders: bool
If unclaimed order events with an EXTERNAL strategy ID should be filtered/dropped.
filter_position_reports: bool
If position status reports are filtered from reconciliation.
filtered_client_order_ids: Option<Vec<String>>
Client order IDs to filter from reconciliation.
generate_missing_orders: bool
If MARKET order events will be generated during reconciliation to align discrepancies.
inflight_check_interval_ms: u32
The interval (milliseconds) between checking whether in-flight orders have exceeded their threshold.
inflight_check_threshold_ms: u32
The threshold (milliseconds) beyond which an in-flight order’s status is checked with the venue.
inflight_check_retries: u32
The number of retry attempts for verifying in-flight order status.
own_books_audit_interval_secs: Option<f64>
The interval (seconds) between auditing own books against public order books.
open_check_interval_secs: Option<f64>
The interval (seconds) between checks for open orders at the venue.
open_check_lookback_mins: Option<u32>
The lookback minutes for open order checks.
open_check_threshold_ms: u32
The minimum elapsed time (milliseconds) since an order update before acting on discrepancies.
open_check_missing_retries: u32
The number of retries for missing open orders.
open_check_open_only: bool
If the check_open_orders
requests only currently open orders from the venue.
purge_closed_orders_interval_mins: Option<u32>
The interval (minutes) between purging closed orders from the in-memory cache.
purge_closed_orders_buffer_mins: Option<u32>
The time buffer (minutes) before closed orders can be purged.
purge_closed_positions_interval_mins: Option<u32>
The interval (minutes) between purging closed positions from the in-memory cache.
purge_closed_positions_buffer_mins: Option<u32>
The time buffer (minutes) before closed positions can be purged.
purge_account_events_interval_mins: Option<u32>
The interval (minutes) between purging account events from the in-memory cache.
purge_account_events_lookback_mins: Option<u32>
The time buffer (minutes) before account events can be purged.
purge_from_database: bool
If purge operations should also delete from the backing database.
qsize: u32
The queue size for the engine’s internal queue buffers.
graceful_shutdown_on_exception: bool
If the engine should gracefully shutdown when queue processing raises unexpected exceptions.
Trait Implementations§
Source§impl Clone for LiveExecEngineConfig
impl Clone for LiveExecEngineConfig
Source§fn clone(&self) -> LiveExecEngineConfig
fn clone(&self) -> LiveExecEngineConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LiveExecEngineConfig
impl Debug for LiveExecEngineConfig
Source§impl Default for LiveExecEngineConfig
impl Default for LiveExecEngineConfig
Source§impl<'de> Deserialize<'de> for LiveExecEngineConfig
impl<'de> Deserialize<'de> for LiveExecEngineConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl From<LiveExecEngineConfig> for ExecutionEngineConfig
impl From<LiveExecEngineConfig> for ExecutionEngineConfig
Source§fn from(_config: LiveExecEngineConfig) -> Self
fn from(_config: LiveExecEngineConfig) -> Self
Source§impl PartialEq for LiveExecEngineConfig
impl PartialEq for LiveExecEngineConfig
Source§impl Serialize for LiveExecEngineConfig
impl Serialize for LiveExecEngineConfig
impl StructuralPartialEq for LiveExecEngineConfig
Auto Trait Implementations§
impl Freeze for LiveExecEngineConfig
impl RefUnwindSafe for LiveExecEngineConfig
impl Send for LiveExecEngineConfig
impl Sync for LiveExecEngineConfig
impl Unpin for LiveExecEngineConfig
impl UnwindSafe for LiveExecEngineConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more