#[non_exhaustive]pub struct Fill {Show 13 fields
pub id: FillId,
pub order_id: OrderId,
pub trade_id: Option<TradeId>,
pub key: MarketKey,
pub side: Side,
pub price: Decimal,
pub size: Decimal,
pub notional: Option<Decimal>,
pub fee: Option<Decimal>,
pub liquidity: Option<Liquidity>,
pub client_order_id: Option<ClientOrderId>,
pub time: UnixMillis,
pub extensions: Extensions,
}Expand description
One order’s part in a trade.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: FillIdThe venue’s id for the fill.
order_id: OrderIdThe order filled.
trade_id: Option<TradeId>The trade it was part of.
key: MarketKeyThe instrument or outcome traded.
side: SideThe order’s side.
price: DecimalThe price.
size: DecimalThe size, in the instrument’s native quantity.
notional: Option<Decimal>The quote-currency amount, where the venue reports one.
fee: Option<Decimal>The fee charged, in the quote currency unless the venue’s own facts say otherwise.
liquidity: Option<Liquidity>Whether the order made or took liquidity.
client_order_id: Option<ClientOrderId>The caller’s id for the order.
time: UnixMillisWhen it filled.
extensions: ExtensionsThe venue’s own facts.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Fill
Auto Trait Implementations§
impl !RefUnwindSafe for Fill
impl !UnwindSafe for Fill
impl Freeze for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
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