pub struct BlockTradeExecution {Show 23 fields
pub trade_id: String,
pub trade_seq: Option<i64>,
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 liquidity: String,
pub index_price: f64,
pub mark_price: f64,
pub block_trade_id: String,
pub timestamp: i64,
pub state: String,
pub tick_direction: Option<i32>,
pub api: Option<bool>,
pub post_only: Option<bool>,
pub reduce_only: Option<bool>,
pub iv: Option<f64>,
pub underlying_price: Option<f64>,
pub label: Option<String>,
}Expand description
Individual trade execution within a block trade
Contains details of a single executed trade leg within a block trade.
Fields§
§trade_id: StringUnique trade identifier
trade_seq: Option<i64>Trade sequence number
instrument_name: StringInstrument name
direction: StringTrade direction (buy/sell)
amount: f64Trade amount
price: f64Execution price
fee: f64Fee amount
fee_currency: StringFee currency (e.g., “BTC”, “ETH”)
order_id: StringOrder ID
order_type: StringOrder type (e.g., “limit”)
liquidity: StringLiquidity indicator (“M” for maker, “T” for taker)
index_price: f64Index price at execution
mark_price: f64Mark price at execution
block_trade_id: StringBlock trade ID this execution belongs to
timestamp: i64Execution timestamp in milliseconds
state: StringTrade state (e.g., “filled”)
tick_direction: Option<i32>Tick direction (0=Plus, 1=Zero-Plus, 2=Minus, 3=Zero-Minus)
api: Option<bool>Whether this was an API order
post_only: Option<bool>Post-only flag
reduce_only: Option<bool>Reduce-only flag
iv: Option<f64>Implied volatility (options only)
underlying_price: Option<f64>Underlying price (options only)
label: Option<String>Trade label
Trait Implementations§
Source§impl Clone for BlockTradeExecution
impl Clone for BlockTradeExecution
Source§fn clone(&self) -> BlockTradeExecution
fn clone(&self) -> BlockTradeExecution
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 BlockTradeExecution
impl Debug for BlockTradeExecution
Source§impl<'de> Deserialize<'de> for BlockTradeExecution
impl<'de> Deserialize<'de> for BlockTradeExecution
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 BlockTradeExecution
impl Display for BlockTradeExecution
Source§impl PartialEq for BlockTradeExecution
impl PartialEq for BlockTradeExecution
Source§impl Serialize for BlockTradeExecution
impl Serialize for BlockTradeExecution
impl StructuralPartialEq for BlockTradeExecution
Auto Trait Implementations§
impl Freeze for BlockTradeExecution
impl RefUnwindSafe for BlockTradeExecution
impl Send for BlockTradeExecution
impl Sync for BlockTradeExecution
impl Unpin for BlockTradeExecution
impl UnsafeUnpin for BlockTradeExecution
impl UnwindSafe for BlockTradeExecution
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