#[non_exhaustive]pub struct IndexTickerUpdate {
pub inst_id: String,
pub idx_px: NumberString,
pub high24h: NumberString,
pub open24h: NumberString,
pub low24h: NumberString,
pub sod_utc0: NumberString,
pub sod_utc8: NumberString,
pub ts: NumberString,
pub extra: ExtraFields,
}Expand description
index-tickers channel row.
OKX docs: https://www.okx.com/docs-v5/en/#order-book-trading-public-data-ws-index-tickers-channel
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.inst_id: StringIndex instrument ID, e.g., BTC-USD.
idx_px: NumberStringCurrent index price.
high24h: NumberStringHighest index price over the last 24 hours.
open24h: NumberStringOpen index price over the last 24 hours.
low24h: NumberStringLowest index price over the last 24 hours.
sod_utc0: NumberStringOpen price at start of day (00:00 UTC).
sod_utc8: NumberStringOpen price at start of day (08:00 UTC+8).
ts: NumberStringPush time (Unix milliseconds).
extra: ExtraFieldsUnrecognized fields retained for forward compatibility.
Trait Implementations§
Source§impl Clone for IndexTickerUpdate
impl Clone for IndexTickerUpdate
Source§fn clone(&self) -> IndexTickerUpdate
fn clone(&self) -> IndexTickerUpdate
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 IndexTickerUpdate
impl Debug for IndexTickerUpdate
Source§impl Default for IndexTickerUpdate
impl Default for IndexTickerUpdate
Source§fn default() -> IndexTickerUpdate
fn default() -> IndexTickerUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexTickerUpdate
impl<'de> Deserialize<'de> for IndexTickerUpdate
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 IndexTickerUpdate
impl RefUnwindSafe for IndexTickerUpdate
impl Send for IndexTickerUpdate
impl Sync for IndexTickerUpdate
impl Unpin for IndexTickerUpdate
impl UnsafeUnpin for IndexTickerUpdate
impl UnwindSafe for IndexTickerUpdate
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