MCPcopy Create free account
hub / github.com/Open-Quant/openquant / BacktestData

Class BacktestData

crates/openquant/src/backtesting_engine.rs:41–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39
40#[derive(Debug, Clone, PartialEq)]
41pub struct BacktestData {
42 pub returns: Vec<f64>,
43 pub label_spans: Vec<(NaiveDateTime, NaiveDateTime)>,
44}
45
46impl BacktestData {
47 pub fn validate(&self) -> Result<(), String> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected