pub struct TradeExecution {Show 14 fields
pub trade_id: String,
pub instrument_name: String,
pub direction: String,
pub amount: f64,
pub price: f64,
pub fee: f64,
pub fee_currency: String,
pub order_id: String,
pub order_type: String,
pub timestamp: u64,
pub liquidity: Option<String>,
pub index_price: Option<f64>,
pub mark_price: Option<f64>,
pub profit_loss: Option<f64>,
}Expand description
Trade execution information
Fields§
§trade_id: StringTrade ID
instrument_name: StringInstrument name
direction: StringTrade direction (buy/sell)
amount: f64Trade amount
price: f64Trade price
fee: f64Trade fee
fee_currency: StringFee currency
order_id: StringOrder ID associated with this trade
order_type: StringOrder type
timestamp: u64Trade timestamp in milliseconds
liquidity: Option<String>Liquidity type (maker/taker)
index_price: Option<f64>Index price at time of trade
mark_price: Option<f64>Mark price at time of trade
profit_loss: Option<f64>Profit/loss from the trade
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 UnsafeUnpin 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