sandbox-quant 1.0.7

Exchange-truth trading core for Binance Spot and Futures
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use thiserror::Error;

#[derive(Debug, Error, Clone, PartialEq)]
pub enum StrategyError {
    #[error("strategy watch not found: id={0}")]
    WatchNotFound(u64),
    #[error("strategy watch already armed: template={template} instrument={instrument}")]
    DuplicateWatch {
        template: &'static str,
        instrument: String,
    },
}