pub struct KrakenWsExecutionData {Show 24 fields
pub exec_type: KrakenExecType,
pub order_id: String,
pub cl_ord_id: Option<String>,
pub symbol: Option<String>,
pub side: Option<KrakenOrderSide>,
pub order_type: Option<KrakenOrderType>,
pub order_qty: Option<f64>,
pub limit_price: Option<f64>,
pub order_status: Option<KrakenWsOrderStatus>,
pub cum_qty: Option<f64>,
pub cum_cost: Option<f64>,
pub avg_price: Option<f64>,
pub time_in_force: Option<KrakenTimeInForce>,
pub post_only: Option<bool>,
pub reduce_only: Option<bool>,
pub timestamp: String,
pub exec_id: Option<String>,
pub last_qty: Option<f64>,
pub last_price: Option<f64>,
pub cost: Option<f64>,
pub liquidity_ind: Option<KrakenLiquidityInd>,
pub fees: Option<Vec<KrakenWsFee>>,
pub fee_usd_equiv: Option<f64>,
pub reason: Option<String>,
}Expand description
Execution message from the Kraken executions channel.
Fields§
§exec_type: KrakenExecTypeExecution type.
order_id: StringKraken order ID.
cl_ord_id: Option<String>Client order ID (if provided when order was submitted).
symbol: Option<String>Trading pair symbol.
side: Option<KrakenOrderSide>Order side.
order_type: Option<KrakenOrderType>Order type.
order_qty: Option<f64>Order quantity.
limit_price: Option<f64>Limit price.
order_status: Option<KrakenWsOrderStatus>Order status.
cum_qty: Option<f64>Cumulative filled quantity.
cum_cost: Option<f64>Cumulative cost.
avg_price: Option<f64>Average fill price.
time_in_force: Option<KrakenTimeInForce>Time in force.
post_only: Option<bool>Post only flag.
reduce_only: Option<bool>Reduce only flag.
timestamp: StringEvent timestamp (RFC3339).
exec_id: Option<String>Execution/trade ID.
last_qty: Option<f64>Last fill quantity.
last_price: Option<f64>Last fill price.
cost: Option<f64>Trade cost.
liquidity_ind: Option<KrakenLiquidityInd>Liquidity indicator.
fees: Option<Vec<KrakenWsFee>>Fees array.
fee_usd_equiv: Option<f64>Fee in USD equivalent.
reason: Option<String>Cancel reason (when exec_type is Canceled/Expired).
Trait Implementations§
Source§impl Clone for KrakenWsExecutionData
impl Clone for KrakenWsExecutionData
Source§fn clone(&self) -> KrakenWsExecutionData
fn clone(&self) -> KrakenWsExecutionData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KrakenWsExecutionData
impl Debug for KrakenWsExecutionData
Source§impl<'de> Deserialize<'de> for KrakenWsExecutionData
impl<'de> Deserialize<'de> for KrakenWsExecutionData
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 KrakenWsExecutionData
impl RefUnwindSafe for KrakenWsExecutionData
impl Send for KrakenWsExecutionData
impl Sync for KrakenWsExecutionData
impl Unpin for KrakenWsExecutionData
impl UnwindSafe for KrakenWsExecutionData
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more