czsc-core 1.0.0

Core analyzer of the czsc framework (most users should depend on the `czsc` facade instead): fractal (FX), stroke (BI), pivot (ZS), CZSC analyzer.
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::error_chain::expand_error_chain;
use czsc_derive::CZSCErrorDerive;
use polars::error::PolarsError;
use thiserror::Error;

#[derive(Debug, Error, CZSCErrorDerive)]
pub enum CoreUtilsErorr {
    #[error("Polars: {0}")]
    Polars(#[from] PolarsError),

    #[error("{}", expand_error_chain(.0))]
    Unexpected(anyhow::Error),
}