pub enum MetricId {
Show 20 variants
BestBid,
BestAsk,
Mid,
PegDeviationPct,
Spread,
SpreadPct,
BidDepth,
AskDepth,
BidTop3,
AskTop3,
BidTop10,
AskTop10,
Healthy,
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.
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§
Trait Implementations§
impl Copy for MetricId
impl Eq for MetricId
impl StructuralPartialEq for MetricId
Auto Trait Implementations§
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.