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