Module prelude

Source
Expand description

Prelude module for convenient imports of commonly used types and traits.

This module provides a convenient way to import all essential types needed for backtesting, including engines, strategies, order types, and configuration structures.

Re-exports§

pub use crate::engine::BacktestConfig;
pub use crate::engine::BacktestEngine;
pub use crate::engine::Event;
pub use crate::engine::MarketDataEvent;
pub use crate::engine::OrderEvent;
pub use crate::engine::Strategy;
pub use crate::latency::FixedLatency;
pub use crate::latency::GaussianLatency;
pub use crate::latency::LatencyModel;
pub use crate::latency::UniformLatency;
pub use crate::matching::ConservativeParams;
pub use crate::matching::Execution;
pub use crate::matching::MarketImpact;
pub use crate::matching::MatchingEngine;
pub use crate::matching::Order;
pub use crate::matching::OrderSide;
pub use crate::matching::OrderType;
pub use crate::matching::QueueModel;
pub use crate::orderbook::Level;
pub use crate::orderbook::OrderBook;
pub use crate::parallel::MarketDataProvider;
pub use crate::parallel::ParallelConfig;
pub use crate::parallel::ParallelEngine;
pub use crate::parallel::ParallelStrategy;
pub use crate::parallel::SymbolConfig;
pub use crate::BacktestResult;

Type Aliases§

FxHashMap
Type alias for a hash map that uses the Fx hashing algorithm.
FxHashSet
Type alias for a hash set that uses the Fx hashing algorithm.