#[non_exhaustive]pub struct BlockTicker {Show 14 fields
pub inst_type: String,
pub inst_id: String,
pub last: NumberString,
pub last_sz: NumberString,
pub ask_px: NumberString,
pub ask_sz: NumberString,
pub bid_px: NumberString,
pub bid_sz: NumberString,
pub open24h: NumberString,
pub high24h: NumberString,
pub low24h: NumberString,
pub vol24h: NumberString,
pub vol_ccy24h: NumberString,
pub ts: NumberString,
}Expand description
A block-trading ticker snapshot.
OKX block ticker rows are sparser than regular ticker rows, so fields that
are required by Ticker are optional/defaulted here.
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_type: StringInstrument type, when present.
inst_id: StringInstrument ID, e.g. BTC-USDT-SWAP.
last: NumberStringLast traded price, when present.
last_sz: NumberStringLast traded size, when present.
ask_px: NumberStringBest ask price, when present.
ask_sz: NumberStringBest ask size, when present.
bid_px: NumberStringBest bid price, when present.
bid_sz: NumberStringBest bid size, when present.
open24h: NumberStringOpen price over the last 24 hours, when present.
high24h: NumberStringHighest price over the last 24 hours, when present.
low24h: NumberStringLowest price over the last 24 hours, when present.
vol24h: NumberStringTrading volume over the last 24 hours, when present.
vol_ccy24h: NumberStringTrading volume in currency units over the last 24 hours, when present.
ts: NumberStringTicker timestamp (Unix milliseconds), when present.
Trait Implementations§
Source§impl Clone for BlockTicker
impl Clone for BlockTicker
Source§fn clone(&self) -> BlockTicker
fn clone(&self) -> BlockTicker
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 BlockTicker
impl Debug for BlockTicker
Source§impl<'de> Deserialize<'de> for BlockTicker
impl<'de> Deserialize<'de> for BlockTicker
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 BlockTicker
impl RefUnwindSafe for BlockTicker
impl Send for BlockTicker
impl Sync for BlockTicker
impl Unpin for BlockTicker
impl UnsafeUnpin for BlockTicker
impl UnwindSafe for BlockTicker
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