pub struct Candle {Show 23 fields
pub timestamp: i64,
pub timestamp_ns: u32,
pub width: CandleWidth,
pub symbol: String,
pub open: Option<Decimal>,
pub high: Option<Decimal>,
pub low: Option<Decimal>,
pub close: Option<Decimal>,
pub volume: Decimal,
pub buy_volume: Decimal,
pub sell_volume: Decimal,
pub mid_open: Option<Decimal>,
pub mid_close: Option<Decimal>,
pub mid_high: Option<Decimal>,
pub mid_low: Option<Decimal>,
pub bid_open: Option<Decimal>,
pub bid_close: Option<Decimal>,
pub bid_high: Option<Decimal>,
pub bid_low: Option<Decimal>,
pub ask_open: Option<Decimal>,
pub ask_close: Option<Decimal>,
pub ask_high: Option<Decimal>,
pub ask_low: Option<Decimal>,
}Expand description
OHLCV candle bar.
Fields§
§timestamp: i64§timestamp_ns: u32§width: CandleWidth§symbol: String§open: Option<Decimal>§high: Option<Decimal>§low: Option<Decimal>§close: Option<Decimal>§volume: Decimal§buy_volume: Decimal§sell_volume: Decimal§mid_open: Option<Decimal>§mid_close: Option<Decimal>§mid_high: Option<Decimal>§mid_low: Option<Decimal>§bid_open: Option<Decimal>§bid_close: Option<Decimal>§bid_high: Option<Decimal>§bid_low: Option<Decimal>§ask_open: Option<Decimal>§ask_close: Option<Decimal>§ask_high: Option<Decimal>§ask_low: Option<Decimal>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Candle
impl<'de> Deserialize<'de> for Candle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Candle
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnsafeUnpin for Candle
impl UnwindSafe for Candle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more