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>,
pub greeks: Option<Greeks>,
pub implied_volatility: Option<f64>,
}Fields§
§latest_trade: Option<Trade>§latest_quote: Option<Quote>§minute_bar: Option<Bar>§daily_bar: Option<Bar>§prev_daily_bar: Option<Bar>§greeks: Option<Greeks>§implied_volatility: Option<f64>Implementations§
Source§impl Snapshot
impl Snapshot
pub fn timestamp(&self) -> Option<&str>
pub fn bid_price(&self) -> Option<Decimal>
pub fn ask_price(&self) -> Option<Decimal>
pub fn last_price(&self) -> Option<Decimal>
pub fn minute_volume(&self) -> Option<u64>
pub fn daily_volume(&self) -> Option<u64>
pub fn latest_trade_size(&self) -> Option<u64>
pub fn bid_size(&self) -> Option<u64>
pub fn ask_size(&self) -> Option<u64>
pub fn mark_price(&self) -> Option<Decimal>
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