pub struct StreamBar {
pub high: Option<String>,
pub low: Option<String>,
pub open: Option<String>,
pub close: Option<String>,
pub time_stamp: Option<String>,
pub total_volume: Option<String>,
pub status: Option<String>,
}Expand description
A streaming bar (OHLCV) update.
Delivered via Client::stream_bars. Contains partial or completed bar data.
Fields§
§high: Option<String>Highest price during the bar period.
low: Option<String>Lowest price during the bar period.
open: Option<String>Opening price.
close: Option<String>Closing price (updates in real time for the current bar).
time_stamp: Option<String>Bar timestamp.
total_volume: Option<String>Total volume during the bar period.
status: Option<String>Stream status (present only for status messages).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StreamBar
impl<'de> Deserialize<'de> for StreamBar
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 StreamBar
impl RefUnwindSafe for StreamBar
impl Send for StreamBar
impl Sync for StreamBar
impl Unpin for StreamBar
impl UnsafeUnpin for StreamBar
impl UnwindSafe for StreamBar
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