pub struct FillReport {Show 15 fields
pub account_id: AccountId,
pub instrument_id: InstrumentId,
pub venue_order_id: VenueOrderId,
pub trade_id: TradeId,
pub order_side: OrderSide,
pub last_qty: Quantity,
pub last_px: Price,
pub commission: Money,
pub liquidity_side: LiquiditySide,
pub avg_px: Option<Decimal>,
pub report_id: UUID4,
pub ts_event: UnixNanos,
pub ts_init: UnixNanos,
pub client_order_id: Option<ClientOrderId>,
pub venue_position_id: Option<PositionId>,
}Expand description
Represents a fill report of a single order execution.
Fields§
§account_id: AccountIdThe account ID associated with the position.
instrument_id: InstrumentIdThe instrument ID associated with the event.
venue_order_id: VenueOrderIdThe venue assigned order ID.
trade_id: TradeIdThe trade match ID (assigned by the venue).
order_side: OrderSideThe order side.
last_qty: QuantityThe last fill quantity for the position.
last_px: PriceThe last fill price for the position.
commission: MoneyThe commission generated from the fill.
liquidity_side: LiquiditySideThe liquidity side of the execution.
avg_px: Option<Decimal>The cumulative or chunk average execution price when provided by the venue.
report_id: UUID4The unique identifier for the event.
ts_event: UnixNanosUNIX timestamp (nanoseconds) when the event occurred.
ts_init: UnixNanosUNIX timestamp (nanoseconds) when the event was initialized.
client_order_id: Option<ClientOrderId>The client order ID.
venue_position_id: Option<PositionId>The position ID (assigned by the venue).
Implementations§
Source§impl FillReport
impl FillReport
Sourcepub fn new(
account_id: AccountId,
instrument_id: InstrumentId,
venue_order_id: VenueOrderId,
trade_id: TradeId,
order_side: OrderSide,
last_qty: Quantity,
last_px: Price,
commission: Money,
liquidity_side: LiquiditySide,
client_order_id: Option<ClientOrderId>,
venue_position_id: Option<PositionId>,
ts_event: UnixNanos,
ts_init: UnixNanos,
report_id: Option<UUID4>,
) -> Self
pub fn new( account_id: AccountId, instrument_id: InstrumentId, venue_order_id: VenueOrderId, trade_id: TradeId, order_side: OrderSide, last_qty: Quantity, last_px: Price, commission: Money, liquidity_side: LiquiditySide, client_order_id: Option<ClientOrderId>, venue_position_id: Option<PositionId>, ts_event: UnixNanos, ts_init: UnixNanos, report_id: Option<UUID4>, ) -> Self
Creates a new FillReport instance with required fields.
Sourcepub const fn has_client_order_id(&self) -> bool
pub const fn has_client_order_id(&self) -> bool
Checks if the fill has a client order ID.
Sourcepub const fn has_venue_position_id(&self) -> bool
pub const fn has_venue_position_id(&self) -> bool
Utility method to check if the fill has a venue position ID.
Trait Implementations§
Source§impl CatalogPathPrefix for FillReport
impl CatalogPathPrefix for FillReport
Source§fn path_prefix() -> &'static str
fn path_prefix() -> &'static str
Source§impl Clone for FillReport
impl Clone for FillReport
Source§fn clone(&self) -> FillReport
fn clone(&self) -> FillReport
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 FillReport
impl Debug for FillReport
Source§impl<'de> Deserialize<'de> for FillReport
impl<'de> Deserialize<'de> for FillReport
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>,
Source§impl Display for FillReport
impl Display for FillReport
impl Eq for FillReport
Source§impl HasTsInit for FillReport
impl HasTsInit for FillReport
Source§impl PartialEq for FillReport
impl PartialEq for FillReport
Source§impl Serialize for FillReport
impl Serialize for FillReport
impl StructuralPartialEq for FillReport
Auto Trait Implementations§
impl Freeze for FillReport
impl RefUnwindSafe for FillReport
impl Send for FillReport
impl Sync for FillReport
impl Unpin for FillReport
impl UnsafeUnpin for FillReport
impl UnwindSafe for FillReport
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.