#[non_exhaustive]pub struct CombinedTrade {
pub aggressor_order_id: Option<u64>,
pub first_time: DateTime<Utc>,
pub last_time: DateTime<Utc>,
pub first_price: f64,
pub last_price: f64,
pub price: f64,
pub size: f64,
pub fills: usize,
pub side: Option<OrderSide>,
pub consumed: Vec<ConsumedOrder>,
pub complete: bool,
}Expand description
Fills of one explicitly identified aggressive order, or one fill without an order id. Only retained fills count: eviction from the raw store also removes them from this view.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.aggressor_order_id: Option<u64>Explicit aggressor order id; unknown fills are never grouped together.
first_time: DateTime<Utc>Time of the first retained fill.
last_time: DateTime<Utc>Time of the last retained fill.
first_price: f64Price of the first retained fill.
last_price: f64Price of the last retained fill.
price: f64Volume-weighted price; the first price for zero total size.
size: f64Total retained size, saturating at the largest finite value on overflow.
fills: usizeNumber of retained fills.
side: Option<OrderSide>Aggressor side, unknown if fills disagree.
consumed: Vec<ConsumedOrder>The resting orders the retained fills consumed, in fill order; consecutive fills of
one identified order at one price are one entry. Their sizes add up to
size.
complete: boolWhether the order is fully reconstructed: its aggressor id is explicit and every
retained fill names its resting order. Otherwise consumed lacks evidence.
Trait Implementations§
Source§impl Clone for CombinedTrade
impl Clone for CombinedTrade
Source§fn clone(&self) -> CombinedTrade
fn clone(&self) -> CombinedTrade
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CombinedTrade
impl Debug for CombinedTrade
Source§impl PartialEq for CombinedTrade
impl PartialEq for CombinedTrade
impl StructuralPartialEq for CombinedTrade
Auto Trait Implementations§
impl Freeze for CombinedTrade
impl RefUnwindSafe for CombinedTrade
impl Send for CombinedTrade
impl Sync for CombinedTrade
impl Unpin for CombinedTrade
impl UnsafeUnpin for CombinedTrade
impl UnwindSafe for CombinedTrade
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more