pub struct CandleBar {
pub time: DateTime<Utc>,
pub open: Decimal,
pub close: Decimal,
pub high: Decimal,
pub low: Decimal,
pub volume: Decimal,
}Expand description
One candle (bar).
Fields§
§time: DateTime<Utc>Opening time of the bar (UTC).
open: DecimalOpening price.
close: DecimalClosing price.
high: DecimalHighest price.
low: DecimalLowest price.
volume: DecimalTraded volume of the bar.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CandleBar
impl<'de> Deserialize<'de> for CandleBar
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
Auto Trait Implementations§
impl Freeze for CandleBar
impl RefUnwindSafe for CandleBar
impl Send for CandleBar
impl Sync for CandleBar
impl Unpin for CandleBar
impl UnsafeUnpin for CandleBar
impl UnwindSafe for CandleBar
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