pub struct BitmexOrderMsg {Show 28 fields
pub order_id: Uuid,
pub cl_ord_id: Option<Ustr>,
pub cl_ord_link_id: Option<Ustr>,
pub account: i64,
pub symbol: Ustr,
pub side: BitmexSide,
pub order_qty: i64,
pub price: Option<f64>,
pub display_qty: Option<i64>,
pub stop_px: Option<f64>,
pub peg_offset_value: Option<f64>,
pub peg_price_type: Option<BitmexPegPriceType>,
pub currency: Ustr,
pub settl_currency: Ustr,
pub ord_type: BitmexOrderType,
pub time_in_force: BitmexTimeInForce,
pub exec_inst: Option<BitmexExecInstruction>,
pub contingency_type: Option<BitmexContingencyType>,
pub ord_status: BitmexOrderStatus,
pub triggered: Option<Ustr>,
pub working_indicator: bool,
pub ord_rej_reason: Option<Ustr>,
pub leaves_qty: i64,
pub cum_qty: i64,
pub avg_px: Option<f64>,
pub text: Option<Ustr>,
pub transact_time: DateTime<Utc>,
pub timestamp: DateTime<Utc>,
}
Expand description
Represents an order update from the WebSocket stream
Fields§
§order_id: Uuid
§cl_ord_id: Option<Ustr>
§cl_ord_link_id: Option<Ustr>
§account: i64
§symbol: Ustr
§side: BitmexSide
§order_qty: i64
§price: Option<f64>
§display_qty: Option<i64>
§stop_px: Option<f64>
§peg_offset_value: Option<f64>
§peg_price_type: Option<BitmexPegPriceType>
§currency: Ustr
§settl_currency: Ustr
§ord_type: BitmexOrderType
§time_in_force: BitmexTimeInForce
§exec_inst: Option<BitmexExecInstruction>
§contingency_type: Option<BitmexContingencyType>
§ord_status: BitmexOrderStatus
§triggered: Option<Ustr>
§working_indicator: bool
§ord_rej_reason: Option<Ustr>
§leaves_qty: i64
§cum_qty: i64
§avg_px: Option<f64>
§text: Option<Ustr>
§transact_time: DateTime<Utc>
§timestamp: DateTime<Utc>
Trait Implementations§
Source§impl Clone for BitmexOrderMsg
impl Clone for BitmexOrderMsg
Source§fn clone(&self) -> BitmexOrderMsg
fn clone(&self) -> BitmexOrderMsg
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 BitmexOrderMsg
impl Debug for BitmexOrderMsg
Source§impl<'de> Deserialize<'de> for BitmexOrderMsg
impl<'de> Deserialize<'de> for BitmexOrderMsg
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 BitmexOrderMsg
impl RefUnwindSafe for BitmexOrderMsg
impl Send for BitmexOrderMsg
impl Sync for BitmexOrderMsg
impl Unpin for BitmexOrderMsg
impl UnwindSafe for BitmexOrderMsg
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