pub struct ExecutionData {Show 27 fields
pub category: String,
pub symbol: String,
pub is_leverage: Option<String>,
pub order_id: String,
pub order_link_id: Option<String>,
pub side: String,
pub order_price: Option<String>,
pub order_qty: Option<String>,
pub leaves_qty: Option<String>,
pub create_type: Option<String>,
pub order_type: Option<String>,
pub stop_order_type: Option<String>,
pub exec_fee: Option<String>,
pub fee_currency: Option<String>,
pub exec_id: String,
pub exec_price: String,
pub exec_qty: String,
pub exec_pnl: Option<String>,
pub exec_type: Option<String>,
pub exec_value: Option<String>,
pub exec_time: String,
pub is_maker: Option<bool>,
pub fee_rate: Option<String>,
pub mark_price: Option<String>,
pub index_price: Option<String>,
pub closed_size: Option<String>,
pub seq: Option<i64>,
}Expand description
Execution (trade fill) data from private WebSocket stream.
Fields§
§category: StringCategory.
symbol: StringSymbol.
is_leverage: Option<String>Is leverage.
order_id: StringOrder ID.
order_link_id: Option<String>User custom order ID.
side: StringSide.
order_price: Option<String>Order price.
order_qty: Option<String>Order quantity.
leaves_qty: Option<String>Remaining quantity.
create_type: Option<String>Create type.
order_type: Option<String>Order type.
stop_order_type: Option<String>Stop order type.
exec_fee: Option<String>Execution fee.
fee_currency: Option<String>Fee currency.
exec_id: StringExecution ID.
exec_price: StringExecution price.
exec_qty: StringExecution quantity.
exec_pnl: Option<String>Execution PnL.
exec_type: Option<String>Execution type (Trade, Funding, AdlTrade, BustTrade).
exec_value: Option<String>Execution value.
exec_time: StringExecution time.
is_maker: Option<bool>Is maker.
fee_rate: Option<String>Fee rate.
mark_price: Option<String>Mark price.
index_price: Option<String>Index price.
closed_size: Option<String>Closed size.
seq: Option<i64>Sequence number.
Trait Implementations§
Source§impl Clone for ExecutionData
impl Clone for ExecutionData
Source§fn clone(&self) -> ExecutionData
fn clone(&self) -> ExecutionData
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 ExecutionData
impl Debug for ExecutionData
Source§impl<'de> Deserialize<'de> for ExecutionData
impl<'de> Deserialize<'de> for ExecutionData
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 ExecutionData
impl RefUnwindSafe for ExecutionData
impl Send for ExecutionData
impl Sync for ExecutionData
impl Unpin for ExecutionData
impl UnwindSafe for ExecutionData
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