pub struct DerivePublicTrade {Show 18 fields
pub direction: DeriveOrderSide,
pub index_price: Decimal,
pub instrument_name: Ustr,
pub liquidity_role: Option<DeriveLiquidityRole>,
pub mark_price: Decimal,
pub quote_id: Option<String>,
pub rfq_id: Option<String>,
pub realized_pnl: Option<Decimal>,
pub subaccount_id: Option<i64>,
pub timestamp: i64,
pub trade_amount: Decimal,
pub trade_fee: Option<Decimal>,
pub trade_id: String,
pub trade_price: Decimal,
pub tx_hash: Option<String>,
pub batch_status: Option<String>,
pub op_uuid: Option<String>,
pub wallet: Option<Ustr>,
}Expand description
Public trade record returned by public/get_trade_history and the
trades.{instrument_type}.{currency} WS channel.
Public REST and WS rows carry participant roles and account detail. Optional fields also accept sparse frames; settlement metadata does not gate trades.
Fields§
§direction: DeriveOrderSideTrade side.
index_price: DecimalUnderlying index price at the time of the trade.
instrument_name: UstrInstrument identifier.
liquidity_role: Option<DeriveLiquidityRole>Role of this row’s participant in the trade. The REST history endpoint
returns one maker row and one taker row per trade under the same
trade_id. Public WS rows also carry participant roles.
mark_price: DecimalMark price at the time of the trade.
quote_id: Option<String>RFQ quote ID when relevant.
rfq_id: Option<String>RFQ session ID when the trade originated from a request-for-quote.
realized_pnl: Option<Decimal>Realized PnL attributed to this participant, when supplied.
subaccount_id: Option<i64>Participant subaccount, when supplied.
timestamp: i64Trade timestamp (UNIX ms).
trade_amount: DecimalFilled amount.
trade_fee: Option<Decimal>Fee charged to this participant, when supplied.
trade_id: StringTrade identifier.
trade_price: DecimalExecution price.
tx_hash: Option<String>Ethereum L1 batch transaction hash from historical rows, when supplied.
batch_status: Option<String>Settlement batch stage from historical rows, when supplied.
op_uuid: Option<String>Settlement operation identity accepted when supplied.
wallet: Option<Ustr>Participant wallet address, when supplied.
Trait Implementations§
Source§impl Clone for DerivePublicTrade
impl Clone for DerivePublicTrade
Source§impl Debug for DerivePublicTrade
impl Debug for DerivePublicTrade
Source§impl<'de> Deserialize<'de> for DerivePublicTrade
impl<'de> Deserialize<'de> for DerivePublicTrade
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>,
Auto Trait Implementations§
impl Freeze for DerivePublicTrade
impl RefUnwindSafe for DerivePublicTrade
impl Send for DerivePublicTrade
impl Sync for DerivePublicTrade
impl Unpin for DerivePublicTrade
impl UnsafeUnpin for DerivePublicTrade
impl UnwindSafe for DerivePublicTrade
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
impl<'de, T> BorrowedRpcObject<'de> for Twhere
T: RpcBorrow<'de> + RpcSend,
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> ⓘ
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