pub struct BitmexTradeMsg {
pub timestamp: DateTime<Utc>,
pub symbol: Ustr,
pub side: BitmexSide,
pub size: u64,
pub price: f64,
pub tick_direction: BitmexTickDirection,
pub trd_match_id: Option<Uuid>,
pub gross_value: Option<i64>,
pub home_notional: Option<f64>,
pub foreign_notional: Option<f64>,
pub trade_type: Ustr,
}
Expand description
Represents a single trade execution on BitMEX.
Fields§
§timestamp: DateTime<Utc>
Timestamp of the trade.
symbol: Ustr
The instrument symbol.
side: BitmexSide
Side of the trade (“Buy” or “Sell”).
size: u64
Size of the trade.
price: f64
Price the trade executed at.
tick_direction: BitmexTickDirection
Direction of the tick (“PlusTick
”, “MinusTick
”, “ZeroPlusTick
”, “ZeroMinusTick
”).
trd_match_id: Option<Uuid>
Unique trade match ID.
gross_value: Option<i64>
Gross value of the trade in satoshis.
home_notional: Option<f64>
Home currency value of the trade.
foreign_notional: Option<f64>
Foreign currency value of the trade.
trade_type: Ustr
Trade type.
Trait Implementations§
Source§impl Clone for BitmexTradeMsg
impl Clone for BitmexTradeMsg
Source§fn clone(&self) -> BitmexTradeMsg
fn clone(&self) -> BitmexTradeMsg
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 BitmexTradeMsg
impl Debug for BitmexTradeMsg
Source§impl<'de> Deserialize<'de> for BitmexTradeMsg
impl<'de> Deserialize<'de> for BitmexTradeMsg
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 BitmexTradeMsg
impl RefUnwindSafe for BitmexTradeMsg
impl Send for BitmexTradeMsg
impl Sync for BitmexTradeMsg
impl Unpin for BitmexTradeMsg
impl UnwindSafe for BitmexTradeMsg
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