Execution

Struct Execution 

Source
pub struct Execution<'a> {
Show 26 fields pub category: &'a str, pub symbol: &'a str, pub is_leverage: &'a str, pub order_id: &'a str, pub order_link_id: &'a str, pub side: &'a str, pub order_price: &'a str, pub order_qty: &'a str, pub leaves_qty: &'a str, pub order_type: &'a str, pub stop_order_type: &'a str, pub exec_fee: &'a str, pub exec_id: &'a str, pub exec_price: &'a str, pub exec_qty: &'a str, pub exec_type: &'a str, pub exec_value: &'a str, pub exec_time: &'a str, pub is_maker: bool, pub fee_rate: &'a str, pub trade_iv: &'a str, pub mark_iv: &'a str, pub mark_price: &'a str, pub index_price: &'a str, pub underlying_price: &'a str, pub block_trade_id: &'a str,
}
Expand description

The execution data.

You may have multiple executions for one order in a single message.

Fields§

§category: &'a str

Product type.

  • Unified account: spot, linear, option.
  • Normal account: linear, inverse.
§symbol: &'a str

Symbol name.

§is_leverage: &'a str

Whether to borrow. Valid for spot only.

  • 0 (default): false.
  • 1: true.
§order_id: &'a str

Order ID.

§order_link_id: &'a str

User customized order ID.

§side: &'a str

Side. Buy, Sell.

§order_price: &'a str

Order price.

§order_qty: &'a str

Order qty.

§leaves_qty: &'a str

The remaining qty not executed.

§order_type: &'a str

Order type. Market, Limit.

§stop_order_type: &'a str

Stop order type. If the order is not stop order, any type is not returned.

§exec_fee: &'a str

Executed trading fee.

§exec_id: &'a str

Execution ID.

§exec_price: &'a str

Execution price.

§exec_qty: &'a str

Execution qty.

§exec_type: &'a str

Executed type.

§exec_value: &'a str

Executed order value.

§exec_time: &'a str

Executed timestamp (ms).

§is_maker: bool

Is maker order. true: maker, false: taker.

§fee_rate: &'a str

Trading fee rate.

§trade_iv: &'a str

Implied volatility. Valid for option.

§mark_iv: &'a str

Implied volatility of mark price. Valid for option.

§mark_price: &'a str

The mark price of the symbol when executing.

§index_price: &'a str

The index price of the symbol when executing.

§underlying_price: &'a str

The underlying price of the symbol when executing. Valid for option.

§block_trade_id: &'a str

Paradigm block trade ID.

Trait Implementations§

Source§

impl<'a> Debug for Execution<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de: 'a, 'a> Deserialize<'de> for Execution<'a>

Source§

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<'a> Freeze for Execution<'a>

§

impl<'a> RefUnwindSafe for Execution<'a>

§

impl<'a> Send for Execution<'a>

§

impl<'a> Sync for Execution<'a>

§

impl<'a> Unpin for Execution<'a>

§

impl<'a> UnwindSafe for Execution<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,