pub struct ParallelConfig {
pub start_time_ns: u64,
pub end_time_ns: u64,
pub queue_model: QueueModel,
pub allow_partial_fills: bool,
pub order_latency: Box<dyn LatencyModel>,
pub market_data_latency: Box<dyn LatencyModel>,
}Expand description
Configuration for parallel L2 backtesting
Fields§
§start_time_ns: u64Start time of the backtest in nanoseconds
end_time_ns: u64End time of the backtest in nanoseconds
queue_model: QueueModelQueue position model to use (FIFO, ProRata, etc.)
allow_partial_fills: boolWhether to allow partial order fills
order_latency: Box<dyn LatencyModel>Latency model for order submission and responses
market_data_latency: Box<dyn LatencyModel>Latency model for market data delivery
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl !RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl !UnwindSafe for ParallelConfig
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
Mutably borrows from an owned value. Read more
§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>
Converts
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>
Converts
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