pub struct BitmexInstrumentMsg {Show 14 fields
pub symbol: Ustr,
pub last_price: Option<f64>,
pub last_tick_direction: Option<BitmexTickDirection>,
pub mark_price: Option<f64>,
pub index_price: Option<f64>,
pub indicative_settle_price: Option<f64>,
pub open_interest: Option<i64>,
pub open_value: Option<i64>,
pub fair_basis: Option<f64>,
pub fair_basis_rate: Option<f64>,
pub fair_price: Option<f64>,
pub mark_method: Option<Ustr>,
pub indicative_tax_rate: Option<f64>,
pub timestamp: DateTime<Utc>,
}
Expand description
Represents a single order book entry in the BitMEX order book.
Fields§
§symbol: Ustr
The instrument symbol (e.g., “XBTUSD”).
last_price: Option<f64>
Last traded price for the instrument.
last_tick_direction: Option<BitmexTickDirection>
Last tick direction for the instrument.
mark_price: Option<f64>
Mark price.
index_price: Option<f64>
Index price.
indicative_settle_price: Option<f64>
Indicative settlement price.
open_interest: Option<i64>
Open interest for the instrument.
open_value: Option<i64>
Open value for the instrument.
fair_basis: Option<f64>
Fair basis.
fair_basis_rate: Option<f64>
Fair basis rate.
fair_price: Option<f64>
Fair price.
mark_method: Option<Ustr>
Mark method.
indicative_tax_rate: Option<f64>
Indicative tax rate.
timestamp: DateTime<Utc>
Timestamp of the update.
Trait Implementations§
Source§impl Clone for BitmexInstrumentMsg
impl Clone for BitmexInstrumentMsg
Source§fn clone(&self) -> BitmexInstrumentMsg
fn clone(&self) -> BitmexInstrumentMsg
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 BitmexInstrumentMsg
impl Debug for BitmexInstrumentMsg
Source§impl<'de> Deserialize<'de> for BitmexInstrumentMsg
impl<'de> Deserialize<'de> for BitmexInstrumentMsg
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 BitmexInstrumentMsg
impl RefUnwindSafe for BitmexInstrumentMsg
impl Send for BitmexInstrumentMsg
impl Sync for BitmexInstrumentMsg
impl Unpin for BitmexInstrumentMsg
impl UnwindSafe for BitmexInstrumentMsg
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