pub struct QuoteValue {Show 17 fields
pub ask: Option<f64>,
pub ask_size: Option<f64>,
pub bid: Option<f64>,
pub bid_size: Option<f64>,
pub change: Option<f64>,
pub change_percent: Option<f64>,
pub open: Option<f64>,
pub high: Option<f64>,
pub low: Option<f64>,
pub prev_close: Option<f64>,
pub price: Option<f64>,
pub timestamp: Option<f64>,
pub volume: Option<f64>,
pub currency: Option<Ustr>,
pub symbol: Option<Ustr>,
pub exchange: Option<Ustr>,
pub market_type: Option<Ustr>,
}Expand description
The value payload of a quote update.
All fields are optional — TradingView only includes the fields that have
changed since the last update. Common fields include price (last price),
bid/ask, volume, change/change_percent, and OHLC values.
Fields§
§ask: Option<f64>§ask_size: Option<f64>§bid: Option<f64>§bid_size: Option<f64>§change: Option<f64>§change_percent: Option<f64>§open: Option<f64>§high: Option<f64>§low: Option<f64>§prev_close: Option<f64>§price: Option<f64>§timestamp: Option<f64>§volume: Option<f64>§currency: Option<Ustr>§symbol: Option<Ustr>§exchange: Option<Ustr>§market_type: Option<Ustr>Trait Implementations§
Source§impl Clone for QuoteValue
impl Clone for QuoteValue
impl Copy for QuoteValue
Source§impl Debug for QuoteValue
impl Debug for QuoteValue
Source§impl Default for QuoteValue
impl Default for QuoteValue
Source§impl<'de> Deserialize<'de> for QuoteValue
impl<'de> Deserialize<'de> for QuoteValue
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
Source§impl PartialEq for QuoteValue
impl PartialEq for QuoteValue
Source§impl Serialize for QuoteValue
impl Serialize for QuoteValue
impl StructuralPartialEq for QuoteValue
Auto Trait Implementations§
impl Freeze for QuoteValue
impl RefUnwindSafe for QuoteValue
impl Send for QuoteValue
impl Sync for QuoteValue
impl Unpin for QuoteValue
impl UnsafeUnpin for QuoteValue
impl UnwindSafe for QuoteValue
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