pub struct TickerMessage {Show 15 fields
pub message_type: String,
pub sequence: u64,
pub product_id: String,
pub price: Decimal,
pub open_24h: Decimal,
pub volume_24h: Decimal,
pub low_24h: Decimal,
pub high_24h: Decimal,
pub volume_30d: Decimal,
pub best_bid: Decimal,
pub best_ask: Decimal,
pub side: String,
pub time: String,
pub trade_id: u64,
pub last_size: Decimal,
}Expand description
Coinbase WebSocket ticker message
Fields§
§message_type: StringMessage type (always “ticker”)
sequence: u64Sequence number for ordering
product_id: StringTrading pair identifier
price: DecimalCurrent price
open_24h: DecimalOpening price 24 hours ago
volume_24h: DecimalTrading volume in the last 24 hours
low_24h: DecimalLowest price in the last 24 hours
high_24h: DecimalHighest price in the last 24 hours
volume_30d: DecimalTrading volume in the last 30 days
best_bid: DecimalBest bid price
best_ask: DecimalBest ask price
side: StringSide of the last trade
time: StringTimestamp in ISO 8601 format
trade_id: u64ID of the last trade
last_size: DecimalSize of the last trade
Trait Implementations§
Source§impl Clone for TickerMessage
impl Clone for TickerMessage
Source§fn clone(&self) -> TickerMessage
fn clone(&self) -> TickerMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TickerMessage
impl Debug for TickerMessage
Source§impl<'de> Deserialize<'de> for TickerMessage
impl<'de> Deserialize<'de> for TickerMessage
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 TickerMessage
impl RefUnwindSafe for TickerMessage
impl Send for TickerMessage
impl Sync for TickerMessage
impl Unpin for TickerMessage
impl UnwindSafe for TickerMessage
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