pub struct BacktestResult {Show 19 fields
pub trader_id: String,
pub machine_id: String,
pub instance_id: UUID4,
pub run_config_id: Option<String>,
pub run_id: Option<UUID4>,
pub run_started: Option<UnixNanos>,
pub run_finished: Option<UnixNanos>,
pub backtest_start: Option<UnixNanos>,
pub backtest_end: Option<UnixNanos>,
pub elapsed_time_secs: f64,
pub iterations: usize,
pub total_events: usize,
pub total_orders: usize,
pub total_positions: usize,
pub summary: AHashMap<String, String>,
pub stats_pnls: AHashMap<String, AHashMap<String, f64>>,
pub stats_returns: AHashMap<String, f64>,
pub stats_general: AHashMap<String, f64>,
pub returns_series: BTreeMap<UnixNanos, f64>,
}Expand description
Results from a completed backtest run.
Fields§
§trader_id: String§machine_id: String§instance_id: UUID4§run_config_id: Option<String>§run_id: Option<UUID4>§run_started: Option<UnixNanos>§run_finished: Option<UnixNanos>§backtest_start: Option<UnixNanos>§backtest_end: Option<UnixNanos>§elapsed_time_secs: f64§iterations: usize§total_events: usize§total_orders: usize§total_positions: usize§summary: AHashMap<String, String>§stats_pnls: AHashMap<String, AHashMap<String, f64>>§stats_returns: AHashMap<String, f64>§stats_general: AHashMap<String, f64>§returns_series: BTreeMap<UnixNanos, f64>Trait Implementations§
Source§impl Debug for BacktestResult
impl Debug for BacktestResult
Auto Trait Implementations§
impl Freeze for BacktestResult
impl RefUnwindSafe for BacktestResult
impl Send for BacktestResult
impl Sync for BacktestResult
impl Unpin for BacktestResult
impl UnsafeUnpin for BacktestResult
impl UnwindSafe for BacktestResult
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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