Skip to main content

LiveExecEngineConfig

Struct LiveExecEngineConfig 

Source
pub struct LiveExecEngineConfig {
Show 39 fields pub load_cache: bool, pub snapshot_orders: bool, pub snapshot_positions: bool, pub snapshot_positions_interval_secs: Option<f64>, pub external_clients: Option<Vec<ClientId>>, pub debug: bool, 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 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 max_single_order_queries_per_cycle: u32, pub single_order_query_delay_ms: u32, pub position_check_interval_secs: Option<f64>, pub position_check_lookback_mins: u32, pub position_check_threshold_ms: u32, pub position_check_retries: u32, 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 own_books_audit_interval_secs: Option<f64>, pub qsize: u32, pub allow_overfills: bool, pub manage_own_order_books: bool,
}
Expand description

Configuration for live execution engines.

Fields§

§load_cache: bool

If the cache should be loaded on initialization.

§snapshot_orders: bool

If order state snapshot lists should be persisted to a backing database.

Not implemented on the current live runtime; validate_runtime_support rejects any value other than the default because the live kernel does not yet wire a cache database adapter.

§snapshot_positions: bool

If position state snapshot lists should be persisted to a backing database.

Not implemented on the current live runtime; validate_runtime_support rejects any value other than the default because the live kernel does not yet wire a cache database adapter.

§snapshot_positions_interval_secs: Option<f64>

The interval (seconds) at which additional position state snapshots are persisted. If None then no additional snapshots will be taken.

§external_clients: Option<Vec<ClientId>>

Client IDs declared for external stream processing.

The execution engine will not attempt to send trading commands to these client IDs, assuming an external process consumes them from the bus.

§debug: bool

If debug mode is active (will provide extra debug logging).

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

§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. When None, the check is unbounded (no time filter).

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

§max_single_order_queries_per_cycle: u32

The maximum number of single-order queries per consistency check cycle.

§single_order_query_delay_ms: u32

The delay (milliseconds) between consecutive single-order queries.

§position_check_interval_secs: Option<f64>

The interval (seconds) between checks for open positions at the venue.

§position_check_lookback_mins: u32

The lookback minutes for position consistency checks.

§position_check_threshold_ms: u32

The minimum elapsed time (milliseconds) since a position update before acting on discrepancies.

§position_check_retries: u32

The maximum number of reconciliation attempts for a position discrepancy.

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

§own_books_audit_interval_secs: Option<f64>

The interval (seconds) between auditing own books against public order books.

§qsize: u32

The queue size for the engine’s internal queue buffers.

§allow_overfills: bool

If order fills exceeding order quantity are allowed (logs warning instead of raising). Useful when position reconciliation races with exchange fill events.

§manage_own_order_books: bool

If the execution engine should maintain own/user order books based on commands and events.

Implementations§

Source§

impl LiveExecEngineConfig

Source

pub fn builder() -> LiveExecEngineConfigBuilder

Create an instance of LiveExecEngineConfig using the builder syntax

Trait Implementations§

Source§

impl Clone for LiveExecEngineConfig

Source§

fn clone(&self) -> LiveExecEngineConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LiveExecEngineConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for LiveExecEngineConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for LiveExecEngineConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&LiveExecEngineConfig> for ExecutionManagerConfig

Source§

fn from(config: &LiveExecEngineConfig) -> Self

Converts to this type from the input type.
Source§

impl From<LiveExecEngineConfig> for ExecutionEngineConfig

Source§

fn from(config: LiveExecEngineConfig) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for LiveExecEngineConfig

Source§

fn eq(&self, other: &LiveExecEngineConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for LiveExecEngineConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for LiveExecEngineConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.