hyper-ta 0.1.0

Technical analysis indicators — RSI, MACD, Bollinger Bands, multi-timeframe
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use serde::{Deserialize, Serialize};

/// A single OHLCV candle.
///
/// This is a pure-data struct with no framework dependencies.
/// The `time` field is epoch seconds (compatible with Lightweight Charts).
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Candle {
    /// Candle open time as epoch seconds.
    pub time: u64,
    pub open: f64,
    pub high: f64,
    pub low: f64,
    pub close: f64,
    pub volume: f64,
}