pub struct Tick {
pub symbol: Symbol,
pub timestamp: DateTime<Utc>,
pub bid: Price,
pub ask: Price,
pub bid_size: Volume,
pub ask_size: Volume,
pub last_price: Option<Price>,
pub last_size: Option<Volume>,
}Expand description
A single trade tick or best-bid/best-ask snapshot.
Fields§
§symbol: SymbolExchange symbol the tick is for.
timestamp: DateTime<Utc>Time the tick was observed at the exchange.
bid: PriceBest bid price.
ask: PriceBest ask price.
bid_size: VolumeSize resting at the best bid.
ask_size: VolumeSize resting at the best ask.
last_price: Option<Price>Most recent trade price, if the feed reports it.
last_size: Option<Volume>Most recent trade size, if the feed reports it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tick
impl<'de> Deserialize<'de> for Tick
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tick, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Tick, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Tick
impl Serialize for Tick
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Tick
impl RefUnwindSafe for Tick
impl Send for Tick
impl Sync for Tick
impl Unpin for Tick
impl UnsafeUnpin for Tick
impl UnwindSafe for Tick
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