pub struct BitmexTradeInner {
pub timestamp: DateTime<Utc>,
pub symbol: String,
pub side: Side,
pub amount: Decimal,
pub price: Decimal,
pub id: String,
}Expand description
§Raw Payload Examples
See docs: https://www.bitmex.com/app/wsAPI#Response-Format
§Trade payload
{
"table": "trade",
"action": "insert",
"data": [
{
"timestamp": "2023-02-18T09:27:59.701Z",
"symbol": "XBTUSD",
"side": "Sell",
"size": 200,
"price": 24564.5,
"tickDirection": "MinusTick",
"trdMatchID": "31e50cb7-e005-a44e-f354-86e88dff52eb",
"grossValue": 814184,
"homeNotional": 0.00814184,
"foreignNotional": 200,
"trdType": "Regular"
}
]
}Fields§
§timestamp: DateTime<Utc>§symbol: String§side: Side§amount: Decimal§price: Decimal§id: StringTrait Implementations§
Source§impl Clone for BitmexTradeInner
impl Clone for BitmexTradeInner
Source§fn clone(&self) -> BitmexTradeInner
fn clone(&self) -> BitmexTradeInner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BitmexTradeInner
impl Debug for BitmexTradeInner
Source§impl<'de> Deserialize<'de> for BitmexTradeInner
impl<'de> Deserialize<'de> for BitmexTradeInner
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
Source§impl PartialEq for BitmexTradeInner
impl PartialEq for BitmexTradeInner
Source§fn eq(&self, other: &BitmexTradeInner) -> bool
fn eq(&self, other: &BitmexTradeInner) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for BitmexTradeInner
impl PartialOrd for BitmexTradeInner
Source§impl Serialize for BitmexTradeInner
impl Serialize for BitmexTradeInner
impl StructuralPartialEq for BitmexTradeInner
Auto Trait Implementations§
impl Freeze for BitmexTradeInner
impl RefUnwindSafe for BitmexTradeInner
impl Send for BitmexTradeInner
impl Sync for BitmexTradeInner
impl Unpin for BitmexTradeInner
impl UnsafeUnpin for BitmexTradeInner
impl UnwindSafe for BitmexTradeInner
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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