pub enum MetricId {
Show 22 variants
BestBid,
BestAsk,
Mid,
PegDeviationPct,
Spread,
SpreadPct,
BidDepth,
AskDepth,
BidTop3,
AskTop3,
BidTop10,
AskTop10,
Healthy,
LargestTrade,
VolumeChangePct,
PriceUsd,
PriceChange24hPct,
Volume24h,
LiquidityUsd,
Holders,
NativeBalance,
RiskScore,
}Expand description
Identifies one metric of the catalog.
Variants§
BestBid
BestAsk
Mid
PegDeviationPct
(mid - peg_target) / peg_target * 100.
Spread
Absolute spread of the best valid bid and ask.
SpreadPct
The same spread in percent of its mid.
BidDepth
AskDepth
BidTop3
AskTop3
BidTop10
AskTop10
Healthy
1.0 when Sample::healthy is true, else 0.0.
LargestTrade
The largest trade on the venue’s tape since the last tick, in the quote asset. A watchlist reads it; a single summary has none.
VolumeChangePct
The change of the venue’s 24h volume since the last tick, in percent. A watchlist reads it; a single summary has none.
PriceUsd
Token price in USD.
PriceChange24hPct
Token price change over 24h, in percent.
Volume24h
Token trading volume over 24h, in USD.
LiquidityUsd
Token liquidity in USD.
Holders
Number of token holders.
NativeBalance
An address’s balance of the chain’s native coin.
RiskScore
An address’s overall risk score, 0 to 10.
Implementations§
Source§impl MetricId
impl MetricId
Sourcepub fn group(self) -> MetricGroup
pub fn group(self) -> MetricGroup
The group of this metric.
Sourcepub fn since_last_tick(self) -> bool
pub fn since_last_tick(self) -> bool
Whether the value compares this tick with the one before, so only a run of ticks (a watchlist) has it, never one market summary.
Trait Implementations§
impl Copy for MetricId
impl Eq for MetricId
impl StructuralPartialEq for MetricId
Auto Trait Implementations§
impl Forget for MetricId
impl Freeze for MetricId
impl RefUnwindSafe for MetricId
impl Send for MetricId
impl Sync for MetricId
impl Unpin for MetricId
impl UnsafeUnpin for MetricId
impl UnwindSafe for MetricId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
key and return true if they are equal.