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
use async_trait::async_trait;

use crate::{
    errors::CandlesError,
    types::{Candle, Instrument},
};

#[async_trait]
pub trait BaseConnection {
    async fn get_candles(instrument: Instrument) -> Result<Vec<Candle>, CandlesError>;
}