pub struct TickerEvent {Show 22 fields
pub event_time: u64,
pub symbol: String,
pub price_change: f64,
pub price_change_percent: f64,
pub weighted_avg_price: f64,
pub prev_close_price: f64,
pub close_price: f64,
pub close_quantity: f64,
pub bid_price: f64,
pub bid_quantity: f64,
pub ask_price: f64,
pub ask_quantity: f64,
pub open_price: f64,
pub high_price: f64,
pub low_price: f64,
pub volume: f64,
pub quote_volume: f64,
pub open_time: u64,
pub close_time: u64,
pub first_trade_id: i64,
pub last_trade_id: i64,
pub number_of_trades: u64,
}Expand description
24hr ticker event.
Fields§
§event_time: u64Event time.
symbol: StringSymbol.
price_change: f64Price change.
price_change_percent: f64Price change percent.
weighted_avg_price: f64Weighted average price.
prev_close_price: f64Previous day’s close price.
close_price: f64Current day’s close price.
close_quantity: f64Close trade quantity.
bid_price: f64Best bid price.
bid_quantity: f64Best bid quantity.
ask_price: f64Best ask price.
ask_quantity: f64Best ask quantity.
open_price: f64Open price.
high_price: f64High price.
low_price: f64Low price.
volume: f64Total traded base asset volume.
quote_volume: f64Total traded quote asset volume.
open_time: u64Statistics open time.
close_time: u64Statistics close time.
first_trade_id: i64First trade ID.
last_trade_id: i64Last trade ID.
number_of_trades: u64Total number of trades.
Trait Implementations§
Source§impl Clone for TickerEvent
impl Clone for TickerEvent
Source§fn clone(&self) -> TickerEvent
fn clone(&self) -> TickerEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 TickerEvent
impl Debug for TickerEvent
Source§impl<'de> Deserialize<'de> for TickerEvent
impl<'de> Deserialize<'de> for TickerEvent
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 TickerEvent
impl RefUnwindSafe for TickerEvent
impl Send for TickerEvent
impl Sync for TickerEvent
impl Unpin for TickerEvent
impl UnwindSafe for TickerEvent
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