pub struct Fill {Show 18 fields
pub trade_id: u64,
pub taker_order_id: u64,
pub maker_order_id: u64,
pub symbol: String,
pub price: Decimal,
pub size: Decimal,
pub taker_side: Side,
pub taker_wallet_address: WalletAddress,
pub maker_wallet_address: WalletAddress,
pub fee: Decimal,
pub is_taker: bool,
pub timestamp: u64,
pub builder_code_address: Option<WalletAddress>,
pub builder_code_fee: Option<Decimal>,
pub source: FillSource,
pub taker_realized_pnl: Option<Decimal>,
pub maker_realized_pnl: Option<Decimal>,
pub underlying_notional: Option<Decimal>,
}Expand description
Fill (trade execution) information.
Fields§
§trade_id: u64§taker_order_id: u64§maker_order_id: u64§symbol: String§price: Decimal§size: DecimalFill size in contract units.
taker_side: Side§taker_wallet_address: WalletAddress§maker_wallet_address: WalletAddress§fee: Decimal§is_taker: bool§timestamp: u64§builder_code_address: Option<WalletAddress>Optional builder code address for fee rebates
builder_code_fee: Option<Decimal>Fee paid to builder code (deducted from platform revenue)
source: FillSourceSource of the fill (orderbook or RFQ). Defaults to Orderbook for backward compatibility.
taker_realized_pnl: Option<Decimal>Realized PnL for the taker from this fill (set by journal side-effect calculation). Only present for position-reducing fills; None for position-opening fills.
maker_realized_pnl: Option<Decimal>Realized PnL for the maker from this fill.
underlying_notional: Option<Decimal>Underlying notional captured at fill time for option analytics.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fill
impl<'de> Deserialize<'de> for Fill
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Fill, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Fill
impl Serialize for Fill
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for Fill
impl RefUnwindSafe for Fill
impl Send for Fill
impl Sync for Fill
impl Unpin for Fill
impl UnsafeUnpin for Fill
impl UnwindSafe 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
impl<'de, T> BorrowedRpcObject<'de> for 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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> 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