Expand description
The market summary use case: venue + pair -> order book, 24h volume and
MarketSummary. scope market summary, token-health --with-market,
insights and the web endpoints all call it, so the same input gives
the same request everywhere.
Traits§
- DexAnalytics
Source - Port: token analytics with DEX pools, for a DEX venue’s synthetic book. Adapters resolve the token (symbol, address or alias) on the chain.
Functions§
- fetch_
book_ and_ volume - Fetches the book and 24h quote volume for
paironvenue. - fetch_
pattern_ trades - The venue’s recent trades for the bot-pattern advisory
(
super::patterns::TRADE_SAMPLEof them).Errsays why there are none: the summary shows it, and it never fails the summary. - fetch_
summary - Fetches the book and volume, then judges it against
thresholds, with the bot-pattern advisory from the venue’s recent trades. - fetch_
summary_ with_ trades fetch_summary, with the venue’s recent trades it read (or why there are none), so a caller can read them too without a second fetch.- fetch_
token_ summary - The market summary for a token the caller has already analyzed. The pair
is the token symbol with the venue’s default quote: a token symbol is
never split (
WETHis notW/ETH). A DEX venue reads these analytics, so they must be on its chain. - fetch_
token_ summary_ by_ name Deprecated fetch_token_summaryfor a venue name: resolves it withMarketVenue::from_name(the one unknown-venue error), then fetches.- fetch_
token_ summary_ by_ name_ with_ http fetch_token_summary_by_name, sending a CEX venue’s requests throughhttp.- most_
liquid - The pool with the most USD liquidity: the deepest book, not the first.