pub struct UserTrade {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
User trade information
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<'de> Deserialize<'de> for UserTrade
impl<'de> Deserialize<'de> for UserTrade
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 UserTrade
impl RefUnwindSafe for UserTrade
impl Send for UserTrade
impl Sync for UserTrade
impl Unpin for UserTrade
impl UnwindSafe for UserTrade
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