pub struct CloseTrade {Show 19 fields
pub trade_seq: Option<u64>,
pub trade_id: Option<String>,
pub timestamp: Option<u64>,
pub tick_direction: Option<i32>,
pub state: Option<String>,
pub reduce_only: Option<bool>,
pub price: Option<f64>,
pub post_only: Option<bool>,
pub order_type: Option<String>,
pub order_id: Option<String>,
pub matching_id: Option<String>,
pub mark_price: Option<f64>,
pub liquidity: Option<String>,
pub instrument_name: Option<String>,
pub index_price: Option<f64>,
pub fee_currency: Option<String>,
pub fee: Option<f64>,
pub direction: Option<String>,
pub amount: Option<f64>,
}Expand description
Trade information from a close_position response
Fields§
§trade_seq: Option<u64>Trade sequence number
trade_id: Option<String>Unique trade identifier
timestamp: Option<u64>Trade timestamp in milliseconds
tick_direction: Option<i32>Tick direction (0, 1, 2, 3)
state: Option<String>Trade state (filled, etc.)
reduce_only: Option<bool>Whether this was a reduce-only trade
price: Option<f64>Trade price
post_only: Option<bool>Whether this was a post-only order
order_type: Option<String>Order type (limit, market)
order_id: Option<String>Order ID
matching_id: Option<String>Matching ID
mark_price: Option<f64>Mark price at time of trade
liquidity: Option<String>Liquidity type (T = taker, M = maker)
instrument_name: Option<String>Instrument name
index_price: Option<f64>Index price at time of trade
fee_currency: Option<String>Fee currency
fee: Option<f64>Fee amount
direction: Option<String>Trade direction (buy/sell)
amount: Option<f64>Trade amount
Trait Implementations§
Source§impl Clone for CloseTrade
impl Clone for CloseTrade
Source§fn clone(&self) -> CloseTrade
fn clone(&self) -> CloseTrade
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 CloseTrade
impl Debug for CloseTrade
Source§impl<'de> Deserialize<'de> for CloseTrade
impl<'de> Deserialize<'de> for CloseTrade
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 CloseTrade
impl RefUnwindSafe for CloseTrade
impl Send for CloseTrade
impl Sync for CloseTrade
impl Unpin for CloseTrade
impl UnsafeUnpin for CloseTrade
impl UnwindSafe for CloseTrade
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