#[non_exhaustive]pub struct Ticker24h {Show 21 fields
pub symbol: String,
pub price_change: Decimal,
pub price_change_percent: Decimal,
pub weighted_avg_price: Decimal,
pub prev_close_price: Decimal,
pub last_price: Decimal,
pub last_qty: Decimal,
pub bid_price: Decimal,
pub bid_qty: Decimal,
pub ask_price: Decimal,
pub ask_qty: Decimal,
pub open_price: Decimal,
pub high_price: Decimal,
pub low_price: Decimal,
pub volume: Decimal,
pub quote_volume: Decimal,
pub open_time: u64,
pub close_time: u64,
pub first_id: i64,
pub last_id: i64,
pub count: u64,
}Expand description
GET /api/v3/ticker/24hr: rolling 24-hour statistics.
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.symbol: StringThe pair.
price_change: DecimalLast price less the open price.
price_change_percent: DecimalThe change as a percentage.
weighted_avg_price: DecimalVolume-weighted average price.
prev_close_price: DecimalThe previous day’s close.
last_price: DecimalLast traded price.
last_qty: DecimalLast traded quantity.
bid_price: DecimalBest bid price.
bid_qty: DecimalQuantity at the best bid.
ask_price: DecimalBest ask price.
ask_qty: DecimalQuantity at the best ask.
open_price: DecimalPrice 24 hours ago.
high_price: DecimalHighest price.
low_price: DecimalLowest price.
volume: DecimalBase-asset volume.
quote_volume: DecimalQuote-asset volume.
open_time: u64Window start.
close_time: u64Window end.
first_id: i64First trade id in the window, -1 when there is none.
last_id: i64Last trade id in the window, -1 when there is none.
count: u64Trades in the window.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Ticker24h
impl<'de> Deserialize<'de> for Ticker24h
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
impl Eq for Ticker24h
impl StructuralPartialEq for Ticker24h
Auto Trait Implementations§
impl Freeze for Ticker24h
impl RefUnwindSafe for Ticker24h
impl Send for Ticker24h
impl Sync for Ticker24h
impl Unpin for Ticker24h
impl UnsafeUnpin for Ticker24h
impl UnwindSafe for Ticker24h
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