pub struct SpotTicker {Show 13 fields
pub symbol: String,
pub bid1_price: Decimal,
pub bid1_size: Decimal,
pub ask1_price: Decimal,
pub ask1_size: Decimal,
pub last_price: Decimal,
pub prev_price24h: Decimal,
pub price24h_pcnt: Decimal,
pub high_price24h: Decimal,
pub low_price24h: Decimal,
pub turnover24h: Decimal,
pub volume24h: Decimal,
pub usd_index_price: Option<Decimal>,
}Fields§
§symbol: StringSymbol name
bid1_price: DecimalBest bid price
bid1_size: DecimalBest bid size
ask1_price: DecimalBest ask price
ask1_size: DecimalBest ask size
last_price: DecimalLast price
prev_price24h: DecimalMarket price 24 hours ago
price24h_pcnt: DecimalPercentage change of market price in the last 24 hours
high_price24h: DecimalThe highest price in the last 24 hours
low_price24h: DecimalThe lowest price in the last 24 hours
turnover24h: DecimalTurnover for 24h
volume24h: DecimalVolume for 24h
usd_index_price: Option<Decimal>USD index price
- used to calculate USD value of the assets in Unified account
- non-collateral margin coin returns “”
- Only those trading pairs like “XXX/USDT” or “XXX/USDC” have the value
Trait Implementations§
Source§impl Debug for SpotTicker
impl Debug for SpotTicker
Source§impl<'de> Deserialize<'de> for SpotTicker
impl<'de> Deserialize<'de> for SpotTicker
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 SpotTicker
impl PartialEq for SpotTicker
Source§fn eq(&self, other: &SpotTicker) -> bool
fn eq(&self, other: &SpotTicker) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpotTicker
Auto Trait Implementations§
impl Freeze for SpotTicker
impl RefUnwindSafe for SpotTicker
impl Send for SpotTicker
impl Sync for SpotTicker
impl Unpin for SpotTicker
impl UnsafeUnpin for SpotTicker
impl UnwindSafe for SpotTicker
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