#[repr(align(64))]pub struct Bar {
pub bar_type: BarType,
pub open: Decimal,
pub high: Decimal,
pub low: Decimal,
pub close: Decimal,
pub volume: Decimal,
pub timestamp_ns: u64,
}Expand description
OHLCV Bar data
Fields§
§bar_type: BarTypeThe bar type.
open: DecimalThe opening price.
high: DecimalThe highest price.
low: DecimalThe lowest price.
close: DecimalThe closing price.
volume: DecimalThe trading volume.
timestamp_ns: u64The bar close time in nanoseconds.
Implementations§
Trait Implementations§
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