pub struct ParallelEngine { /* private fields */ }Expand description
Parallel L2 backtesting engine
Implementations§
Source§impl ParallelEngine
impl ParallelEngine
Sourcepub fn new(
config: ParallelConfig,
symbols: SmallSymbolVec<SymbolConfig>,
data_provider: Arc<dyn MarketDataProvider>,
) -> Self
pub fn new( config: ParallelConfig, symbols: SmallSymbolVec<SymbolConfig>, data_provider: Arc<dyn MarketDataProvider>, ) -> Self
Create a new parallel L2 engine
Sourcepub fn add_strategy(&self, strategy: Box<dyn ParallelStrategy>)
pub fn add_strategy(&self, strategy: Box<dyn ParallelStrategy>)
Add a parallel strategy
Sourcepub fn run(&self) -> FxHashMap<SmartString, BacktestStats>
pub fn run(&self) -> FxHashMap<SmartString, BacktestStats>
Run parallel backtests
Sourcepub fn run_with_progress<F>(
&self,
progress_fn: F,
) -> FxHashMap<SmartString, BacktestStats>
pub fn run_with_progress<F>( &self, progress_fn: F, ) -> FxHashMap<SmartString, BacktestStats>
Run with progress tracking
Auto Trait Implementations§
impl Freeze for ParallelEngine
impl !RefUnwindSafe for ParallelEngine
impl Send for ParallelEngine
impl Sync for ParallelEngine
impl Unpin for ParallelEngine
impl !UnwindSafe for ParallelEngine
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