pub struct Bar {
pub time: u64,
pub low: f64,
pub high: f64,
pub open: f64,
pub close: f64,
}
Expand description
A single OHLC bar representing price data for a specific time period
Fields§
§time: u64
Timestamp in milliseconds since Unix epoch
low: f64
Lowest price during the period
high: f64
Highest price during the period
open: f64
Opening price of the period
close: f64
Closing price of the period
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bar
impl<'de> Deserialize<'de> for Bar
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 Bar
impl RefUnwindSafe for Bar
impl Send for Bar
impl Sync for Bar
impl Unpin for Bar
impl UnwindSafe for Bar
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