Skip to main content

openlimits_coinbase/model/
candle.rs

1use serde::Deserialize;
2use serde::Serialize;
3use rust_decimal::prelude::Decimal;
4
5/// This struct represents the candle
6#[derive(Debug, Serialize, Deserialize, Clone)]
7pub struct Candle {
8    pub time: u64,
9    pub low: Decimal,
10    pub high: Decimal,
11    pub open: Decimal,
12    pub close: Decimal,
13    pub volume: Decimal,
14}