candles-rs 0.1.4

A Rust library for fetching candlestick (OHLCV) data from multiple cryptocurrency exchanges including Binance, OKX, Bybit, BloFin, and BingX.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;

#[derive(Error, Debug)]
pub enum CandlesError {
    #[error("Connection not found: {0}")]
    ConnectionNotFound(String),

    #[error("Failed to fetch candles from API: {0}")]
    ApiError(String),

    #[error("Api error: {0}")]
    Reqwest(#[from] reqwest::Error),

    #[error("{0}")]
    Other(String),
}