pub struct Snapshot {
pub latest_trade: Option<Trade>,
pub latest_quote: Option<Quote>,
pub minute_bar: Option<Bar>,
pub daily_bar: Option<Bar>,
pub prev_daily_bar: Option<Bar>,
}Fields§
§latest_trade: Option<Trade>§latest_quote: Option<Quote>§minute_bar: Option<Bar>§daily_bar: Option<Bar>§prev_daily_bar: Option<Bar>Implementations§
Source§impl Snapshot
impl Snapshot
pub fn timestamp(&self) -> Option<&str>
pub fn price(&self) -> Option<Decimal>
pub fn bid_price(&self) -> Option<Decimal>
pub fn ask_price(&self) -> Option<Decimal>
pub fn session_open(&self) -> Option<Decimal>
pub fn session_high(&self) -> Option<Decimal>
pub fn session_low(&self) -> Option<Decimal>
pub fn session_close(&self) -> Option<Decimal>
pub fn previous_close(&self) -> Option<Decimal>
pub fn session_volume(&self) -> Option<u64>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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
impl StructuralPartialEq for Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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