pub struct RealTimeBar {
pub time: i64,
pub end_time: i64,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: Decimal,
pub wap: Decimal,
pub count: i32,
}Expand description
Real-time five-second bar. This is intentionally distinct from historical bars because its timestamp and end time have different semantics in the TWS API.
Fields§
§time: i64§end_time: i64§open: f64§high: f64§low: f64§close: f64§volume: Decimal§wap: Decimal§count: i32Trait Implementations§
Source§impl Clone for RealTimeBar
impl Clone for RealTimeBar
Source§fn clone(&self) -> RealTimeBar
fn clone(&self) -> RealTimeBar
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RealTimeBar
impl Debug for RealTimeBar
Source§impl Default for RealTimeBar
impl Default for RealTimeBar
Source§fn default() -> RealTimeBar
fn default() -> RealTimeBar
Returns the “default value” for a type. Read more
Source§impl PartialEq for RealTimeBar
impl PartialEq for RealTimeBar
impl StructuralPartialEq for RealTimeBar
Auto Trait Implementations§
impl Freeze for RealTimeBar
impl RefUnwindSafe for RealTimeBar
impl Send for RealTimeBar
impl Sync for RealTimeBar
impl Unpin for RealTimeBar
impl UnsafeUnpin for RealTimeBar
impl UnwindSafe for RealTimeBar
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