pub struct AxFill {Show 13 fields
pub trade_id: String,
pub order_id: Option<String>,
pub fee: Decimal,
pub is_taker: bool,
pub is_block_trade: Option<bool>,
pub is_final_settlement: Option<bool>,
pub price: Decimal,
pub quantity: u64,
pub side: AxOrderSide,
pub symbol: Ustr,
pub timestamp: Timestamp,
pub account_id: Ustr,
pub realized_pnl: Option<Decimal>,
}Expand description
Individual fill/trade entry.
§References
Fields§
§trade_id: StringTrade ID (execution identifier).
order_id: Option<String>Order ID.
fee: DecimalFee amount.
is_taker: boolWhether this was a taker order.
is_block_trade: Option<bool>Whether this fill was generated by an off-book block trade.
is_final_settlement: Option<bool>Whether this fill was generated by final contract settlement.
price: DecimalExecution price.
quantity: u64Executed quantity (always non-negative).
side: AxOrderSideOrder side.
symbol: UstrInstrument symbol.
timestamp: TimestampExecution timestamp.
account_id: UstrAccount identifier.
realized_pnl: Option<Decimal>Realized PnL for this fill.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AxFill
impl<'de> Deserialize<'de> for AxFill
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 AxFill
impl RefUnwindSafe for AxFill
impl Send for AxFill
impl Sync for AxFill
impl Unpin for AxFill
impl UnsafeUnpin for AxFill
impl UnwindSafe for AxFill
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
Mutably borrows from an owned value. Read more
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>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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