binance_lite 1.0.1

A lightweight Binance API wrapper
Documentation
use serde::{Deserialize, Serialize};

/// DataPoint represents a single even in the market timeline.
#[derive(Debug, Serialize, Deserialize)]
pub enum DataPoint {
    Crypto {
        price: f64,
        time: String,
    },
    RSI {
        value: f64,
        time: String,
        price: f64,
    },
}

/// MarketData holds all recorded market events
#[derive(Debug, Serialize, Deserialize)]
pub struct MarketData {
    pub record: Vec<DataPoint>,
}