pub struct SpotCtx {
pub coin: String,
pub mark_px: Dec,
pub mid_px: Option<Dec>,
pub prev_day_px: Dec,
pub day_ntl_vlm: Dec,
pub day_base_vlm: Option<Dec>,
pub circulating_supply: Dec,
pub total_supply: Option<Dec>,
}Expand description
What a spot pair or an outcome side (#<encoding>) is doing now. An outcome side’s open
interest is its circulating supply.
Fields§
§coin: StringThe book name: PURR/USDC, @107 or #14730.
mark_px: Dec§mid_px: Option<Dec>§prev_day_px: Dec§day_ntl_vlm: DecQuote volume over the last day.
day_base_vlm: Option<Dec>Base volume over the last day.
circulating_supply: Dec§total_supply: Option<Dec>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SpotCtx
impl<'de> Deserialize<'de> for SpotCtx
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 SpotCtx
impl StructuralPartialEq for SpotCtx
Auto Trait Implementations§
impl Freeze for SpotCtx
impl RefUnwindSafe for SpotCtx
impl Send for SpotCtx
impl Sync for SpotCtx
impl Unpin for SpotCtx
impl UnsafeUnpin for SpotCtx
impl UnwindSafe for SpotCtx
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.