use thiserror::Error as ThisError;
#[derive(ThisError, Debug)]
pub enum KucoinErrors {
#[error("SERDE-JSON-ERROR: {0}")]
JSONError(#[from] serde_json::Error),
#[error("Account tag is required for {0} ISOLATED account")]
MissingIsolatedTag(String),
#[error("REQWEST-ERROR: {0}")]
ReqwestError(#[from] reqwest::Error),
}
pub type KucoinResults<T> = Result<T, KucoinErrors>;