pub struct OKXBookMsg {
pub asks: Vec<OrderBookEntry>,
pub bids: Vec<OrderBookEntry>,
pub checksum: Option<i64>,
pub prev_seq_id: Option<i64>,
pub seq_id: u64,
pub ts: u64,
}
Expand description
Order book data for an instrument.
Fields§
§asks: Vec<OrderBookEntry>
Order book asks [price, size, liquidated orders count, orders count].
bids: Vec<OrderBookEntry>
Order book bids [price, size, liquidated orders count, orders count].
checksum: Option<i64>
Checksum value.
prev_seq_id: Option<i64>
Sequence ID of the last sent message. Only applicable to books, books-l2-tbt, books50-l2-tbt.
seq_id: u64
Sequence ID of the current message, implementation details below.
ts: u64
Order book generation time, Unix timestamp format in milliseconds, e.g. 1597026383085.
Trait Implementations§
Source§impl Debug for OKXBookMsg
impl Debug for OKXBookMsg
Source§impl<'de> Deserialize<'de> for OKXBookMsg
impl<'de> Deserialize<'de> for OKXBookMsg
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 OKXBookMsg
impl RefUnwindSafe for OKXBookMsg
impl Send for OKXBookMsg
impl Sync for OKXBookMsg
impl Unpin for OKXBookMsg
impl UnwindSafe for OKXBookMsg
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
§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