bothan-coingecko 0.0.1-beta.2

Rust client for the CoinGecko exchange with Bothan integration
Documentation
use thiserror::Error;

#[derive(Debug, Error)]
pub enum BuildError {
    #[error("invalid url")]
    InvalidURL(#[from] url::ParseError),

    #[error("invalid header value")]
    InvalidHeaderValue(#[from] reqwest::header::InvalidHeaderValue),

    #[error("failed to build with error: {0}")]
    FailedToBuild(#[from] reqwest::Error),
}

#[derive(Debug, Error)]
pub enum ProviderError {
    #[error("failed to fetch tickers: {0}")]
    RequestError(#[from] reqwest::Error),

    #[error("value contains nan")]
    InvalidValue,
}