#[repr(C, align(64))]pub struct Event {
pub ev: u64,
pub exch_ts: i64,
pub local_ts: i64,
pub px: f64,
pub qty: f64,
pub order_id: u64,
pub ival: i64,
pub fval: f64,
}
Expand description
Feed event data.
Fields§
§ev: u64
Event flag
exch_ts: i64
Exchange timestamp, which is the time at which the event occurs on the exchange.
local_ts: i64
Local timestamp, which is the time at which the event is received by the local.
px: f64
Price
qty: f64
Quantity
order_id: u64
Order ID is only for the L3 Market-By-Order feed.
ival: i64
Reserved for an additional i64 value
fval: f64
Reserved for an additional f64 value
Implementations§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for Event
impl<'__de, __Context> BorrowDecode<'__de, __Context> for Event
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl DataPreprocess<Event> for FeedLatencyAdjustment
Available on crate feature backtest
only.
impl DataPreprocess<Event> for FeedLatencyAdjustment
Available on crate feature
backtest
only.impl POD for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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