pub struct OKXTickerMsg {Show 16 fields
pub inst_type: OKXInstrumentType,
pub inst_id: Ustr,
pub last_px: String,
pub last_sz: String,
pub ask_px: String,
pub ask_sz: String,
pub bid_px: String,
pub bid_sz: String,
pub open24h: String,
pub high24h: String,
pub low24h: String,
pub vol_ccy_24h: String,
pub vol24h: String,
pub sod_utc0: String,
pub sod_utc8: String,
pub ts: u64,
}
Expand description
Ticker data for an instrument.
Fields§
§inst_type: OKXInstrumentType
Instrument type, e.g. “SPOT”, “SWAP”.
inst_id: Ustr
Instrument ID, e.g. “BTC-USDT”.
last_px: String
Last traded price.
last_sz: String
Last traded size.
ask_px: String
Best ask price.
ask_sz: String
Best ask size.
bid_px: String
Best bid price.
bid_sz: String
Best bid size.
open24h: String
24-hour opening price.
high24h: String
24-hour highest price.
low24h: String
24-hour lowest price.
vol_ccy_24h: String
24-hour trading volume in quote currency.
vol24h: String
24-hour trading volume.
sod_utc0: String
The opening price of the day (UTC 0).
sod_utc8: String
The opening price of the day (UTC 8).
ts: u64
Timestamp of the data generation, Unix timestamp format in milliseconds.
Trait Implementations§
Source§impl Debug for OKXTickerMsg
impl Debug for OKXTickerMsg
Source§impl<'de> Deserialize<'de> for OKXTickerMsg
impl<'de> Deserialize<'de> for OKXTickerMsg
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 OKXTickerMsg
impl RefUnwindSafe for OKXTickerMsg
impl Send for OKXTickerMsg
impl Sync for OKXTickerMsg
impl Unpin for OKXTickerMsg
impl UnwindSafe for OKXTickerMsg
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