pub struct FillApiResponse {Show 16 fields
pub fill_id: i64,
pub trade_id: i64,
pub wallet_address: WalletAddress,
pub symbol: String,
pub price: Decimal,
pub size: Decimal,
pub fee: Decimal,
pub side: Side,
pub is_taker: bool,
pub timestamp: i64,
pub created_at: DateTime<Utc>,
pub builder_code_address: Option<WalletAddress>,
pub builder_code_fee: Option<Decimal>,
pub realized_pnl: Option<Decimal>,
pub explorer_url: Option<String>,
pub instrument_type: String,
}Expand description
A single fill (one side of a trade) for a specific wallet.
Fields§
§fill_id: i64Unique fill identifier.
trade_id: i64Parent trade identifier that produced this fill.
wallet_address: WalletAddressWallet that received this fill (checksummed Ethereum address).
symbol: StringInstrument symbol that was filled.
price: DecimalExecution price in USD. Serialized as a string.
size: DecimalFill size in contracts. Serialized as a string.
fee: DecimalFee charged for this fill in USD. Serialized as a string.
side: SideWallet-specific fill side.
is_taker: boolWhether this fill was on the taker side.
timestamp: i64Fill timestamp in milliseconds since epoch.
created_at: DateTime<Utc>When the fill was persisted (ISO 8601).
builder_code_address: Option<WalletAddress>Builder/referral code wallet, if a builder code was used (checksummed Ethereum address).
builder_code_fee: Option<Decimal>Fee rebate to the builder code wallet in USD. Serialized as a string.
realized_pnl: Option<Decimal>Realized PnL from this fill in USD, if a position was reduced. Serialized as a string.
explorer_url: Option<String>Link to the on-chain transaction, if settled.
instrument_type: StringInstrument family that produced this fill ("option" or "perp").
Implementations§
Source§impl FillApiResponse
impl FillApiResponse
pub fn instrument_kind(&self) -> Result<InstrumentKind, ParseSdkEnumError>
Trait Implementations§
Source§impl Clone for FillApiResponse
impl Clone for FillApiResponse
Source§fn clone(&self) -> FillApiResponse
fn clone(&self) -> FillApiResponse
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 FillApiResponse
impl Debug for FillApiResponse
Source§impl<'de> Deserialize<'de> for FillApiResponse
impl<'de> Deserialize<'de> for FillApiResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FillApiResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FillApiResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for FillApiResponse
impl Serialize for FillApiResponse
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,
Auto Trait Implementations§
impl Freeze for FillApiResponse
impl RefUnwindSafe for FillApiResponse
impl Send for FillApiResponse
impl Sync for FillApiResponse
impl Unpin for FillApiResponse
impl UnsafeUnpin for FillApiResponse
impl UnwindSafe for FillApiResponse
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
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> ⓘ
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> ⓘ
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