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
use serde::Deserialize;

#[derive(Deserialize)]
pub struct MexcKlineFuturesResponse {
    pub time: Vec<i64>,
    pub open: Vec<f64>,

    pub close: Vec<f64>,
    pub low: Vec<f64>,
    pub high: Vec<f64>,
    pub vol: Vec<f64>,
}