pub struct OrderFilledEvent {
pub exchange: ExchangeId,
pub instrument: InstrumentId,
pub client_id: ClientOrderId,
pub trade_id: TradeId,
pub side: OrderSide,
pub price: Price,
pub qty: Qty,
pub net_qty: Qty,
pub fee: Fee,
pub ts: i64,
}Expand description
Order filled (partial or full) - derived from userFills
Fields§
§exchange: ExchangeIdExchange that reported the fill.
instrument: InstrumentIdInstrument that filled.
client_id: ClientOrderIdClient order ID associated with the fill.
trade_id: TradeIdExchange trade ID or stable derived fill key.
side: OrderSideSide of the filled order.
price: PriceExecution price.
qty: QtyGross quantity filled (as reported by exchange)
net_qty: QtyNet quantity received/spent after fee deduction. For spot BUY: qty - fee (if fee is in base asset) For spot SELL: qty (fee is in quote asset) For perps: same as qty (fees don’t affect position size)
fee: FeeFee paid for this fill.
ts: i64Event timestamp in milliseconds since the Unix epoch.
Trait Implementations§
Source§impl Clone for OrderFilledEvent
impl Clone for OrderFilledEvent
Source§fn clone(&self) -> OrderFilledEvent
fn clone(&self) -> OrderFilledEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderFilledEvent
impl Debug for OrderFilledEvent
Source§impl<'de> Deserialize<'de> for OrderFilledEvent
impl<'de> Deserialize<'de> for OrderFilledEvent
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 OrderFilledEvent
impl RefUnwindSafe for OrderFilledEvent
impl Send for OrderFilledEvent
impl Sync for OrderFilledEvent
impl Unpin for OrderFilledEvent
impl UnsafeUnpin for OrderFilledEvent
impl UnwindSafe for OrderFilledEvent
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