pub struct BybitWsAccountOrder {Show 43 fields
pub category: BybitProductType,
pub symbol: Ustr,
pub order_id: Ustr,
pub side: BybitOrderSide,
pub order_type: BybitOrderType,
pub cancel_type: BybitCancelType,
pub price: String,
pub qty: String,
pub order_iv: String,
pub time_in_force: BybitTimeInForce,
pub order_status: BybitOrderStatus,
pub order_link_id: Ustr,
pub last_price_on_created: Ustr,
pub reduce_only: bool,
pub leaves_qty: String,
pub leaves_value: String,
pub cum_exec_qty: String,
pub cum_exec_value: String,
pub avg_price: String,
pub block_trade_id: Ustr,
pub position_idx: i32,
pub cum_exec_fee: String,
pub created_time: String,
pub updated_time: String,
pub reject_reason: Ustr,
pub trigger_price: String,
pub take_profit: String,
pub stop_loss: String,
pub tp_trigger_by: BybitTriggerType,
pub sl_trigger_by: BybitTriggerType,
pub tp_limit_price: String,
pub sl_limit_price: String,
pub close_on_trigger: bool,
pub place_type: Ustr,
pub smp_type: Ustr,
pub smp_group: i32,
pub smp_order_id: Ustr,
pub fee_currency: Ustr,
pub trigger_by: BybitTriggerType,
pub stop_order_type: BybitStopOrderType,
pub trigger_direction: BybitTriggerDirection,
pub tpsl_mode: Option<BybitTpSlMode>,
pub create_type: Option<BybitCreateType>,
}Expand description
Private order stream payload.
Fields§
§category: BybitProductType§symbol: Ustr§order_id: Ustr§side: BybitOrderSide§order_type: BybitOrderType§cancel_type: BybitCancelType§price: String§qty: String§order_iv: String§time_in_force: BybitTimeInForce§order_status: BybitOrderStatus§order_link_id: Ustr§last_price_on_created: Ustr§reduce_only: bool§leaves_qty: String§leaves_value: String§cum_exec_qty: String§cum_exec_value: String§avg_price: String§block_trade_id: Ustr§position_idx: i32§cum_exec_fee: String§created_time: String§updated_time: String§reject_reason: Ustr§trigger_price: String§take_profit: String§stop_loss: String§tp_trigger_by: BybitTriggerType§sl_trigger_by: BybitTriggerType§tp_limit_price: String§sl_limit_price: String§close_on_trigger: bool§place_type: Ustr§smp_type: Ustr§smp_group: i32§smp_order_id: Ustr§fee_currency: Ustr§trigger_by: BybitTriggerType§stop_order_type: BybitStopOrderType§trigger_direction: BybitTriggerDirection§tpsl_mode: Option<BybitTpSlMode>§create_type: Option<BybitCreateType>Trait Implementations§
Source§impl Clone for BybitWsAccountOrder
impl Clone for BybitWsAccountOrder
Source§fn clone(&self) -> BybitWsAccountOrder
fn clone(&self) -> BybitWsAccountOrder
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 BybitWsAccountOrder
impl Debug for BybitWsAccountOrder
Source§impl<'de> Deserialize<'de> for BybitWsAccountOrder
impl<'de> Deserialize<'de> for BybitWsAccountOrder
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 BybitWsAccountOrder
impl RefUnwindSafe for BybitWsAccountOrder
impl Send for BybitWsAccountOrder
impl Sync for BybitWsAccountOrder
impl Unpin for BybitWsAccountOrder
impl UnwindSafe for BybitWsAccountOrder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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