pub struct TradeExecution {Show 22 fields
pub amount: f64,
pub direction: String,
pub fee: f64,
pub fee_currency: String,
pub index_price: f64,
pub instrument_name: String,
pub iv: Option<f64>,
pub label: String,
pub liquidity: String,
pub mark_price: f64,
pub matching_id: Option<String>,
pub order_id: String,
pub order_type: String,
pub original_order_type: Option<String>,
pub price: f64,
pub self_trade: bool,
pub state: String,
pub tick_direction: i32,
pub timestamp: u64,
pub trade_id: String,
pub trade_seq: u64,
pub underlying_price: Option<f64>,
}Expand description
Trade execution
Fields§
§amount: f64Trade amount
direction: StringTrade direction (buy/sell)
fee: f64Trading fee paid
fee_currency: StringCurrency of the trading fee
index_price: f64Index price at execution time
instrument_name: StringName of the traded instrument
iv: Option<f64>Implied volatility (for options)
label: StringUser-defined label for the trade
liquidity: StringLiquidity type (maker/taker)
mark_price: f64Mark price at execution time
matching_id: Option<String>Matching engine identifier
order_id: StringOrder ID that generated this trade
order_type: StringType of the order that generated this trade
original_order_type: Option<String>Original order type before modifications
price: f64Execution price
self_trade: boolWhether this was a self trade
state: StringCurrent state of the trade
tick_direction: i32Price tick direction (1=up, -1=down, 0=no change)
timestamp: u64Execution timestamp
trade_id: StringUnique trade identifier
trade_seq: u64Trade sequence number
underlying_price: Option<f64>Underlying asset price (for derivatives)
Trait Implementations§
Source§impl Clone for TradeExecution
impl Clone for TradeExecution
Source§fn clone(&self) -> TradeExecution
fn clone(&self) -> TradeExecution
Returns a duplicate of the value. Read more
1.0.0 · 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 TradeExecution
impl Debug for TradeExecution
Source§impl<'de> Deserialize<'de> for TradeExecution
impl<'de> Deserialize<'de> for TradeExecution
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
Source§impl Display for TradeExecution
impl Display for TradeExecution
Auto Trait Implementations§
impl Freeze for TradeExecution
impl RefUnwindSafe for TradeExecution
impl Send for TradeExecution
impl Sync for TradeExecution
impl Unpin for TradeExecution
impl UnwindSafe for TradeExecution
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