Skip to main content

sandbox_quant/error/
strategy_error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error, Clone, PartialEq)]
4pub enum StrategyError {
5    #[error("strategy watch not found: id={0}")]
6    WatchNotFound(u64),
7    #[error("strategy watch already armed: template={template} instrument={instrument}")]
8    DuplicateWatch {
9        template: &'static str,
10        instrument: String,
11    },
12}