/// Errors produced by the synchronous backtest engine.
#[derive(Debug, thiserror::Error)]
pub enum BacktestError {
    #[error("no market events provided")]
    NoEvents,

    #[error("{0}")]
    Other(String),
}

impl From<String> for BacktestError {
    fn from(s: String) -> Self {
        Self::Other(s)
    }
}
