pub struct NormalizedTick {
pub exchange: Exchange,
pub symbol: String,
pub price: Decimal,
pub quantity: Decimal,
pub side: Option<TradeSide>,
pub trade_id: Option<String>,
pub exchange_ts_ms: Option<u64>,
pub received_at_ms: u64,
}Expand description
Canonical normalized tick — exchange-agnostic.
Fields§
§exchange: ExchangeSource exchange.
symbol: StringInstrument symbol in the canonical form used by this crate.
price: DecimalTrade price (exact decimal, never f64).
quantity: DecimalTrade quantity (exact decimal).
side: Option<TradeSide>Direction of the aggressing order, if available from the exchange.
trade_id: Option<String>Exchange-assigned trade identifier, if available.
exchange_ts_ms: Option<u64>Exchange-side timestamp (ms since Unix epoch), if included in the feed.
received_at_ms: u64Local system-clock timestamp when this tick was received.
Trait Implementations§
Source§impl Clone for NormalizedTick
impl Clone for NormalizedTick
Source§fn clone(&self) -> NormalizedTick
fn clone(&self) -> NormalizedTick
Returns a duplicate of the value. Read more
1.0.0 · 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 NormalizedTick
impl Debug for NormalizedTick
Source§impl<'de> Deserialize<'de> for NormalizedTick
impl<'de> Deserialize<'de> for NormalizedTick
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 NormalizedTick
impl RefUnwindSafe for NormalizedTick
impl Send for NormalizedTick
impl Sync for NormalizedTick
impl Unpin for NormalizedTick
impl UnsafeUnpin for NormalizedTick
impl UnwindSafe for NormalizedTick
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