Skip to main content

Module aggregator

Module aggregator 

Source
Expand description

Aggregation layer for combining data from multiple API sources

This module provides:

  • Core aggregation types (SourceResult, AggregatedResult)
  • Data normalization types (NormalizedPrice, NormalizedBalance, NormalizedNft)
  • Price aggregation from multiple sources
  • Chain name normalization across services

Re-exports§

pub use chain_map::*;
pub use nft::*;
pub use normalize::*;
pub use portfolio::*;
pub use price::*;
pub use swap::*;
pub use yields::*;

Modules§

chain_map
Chain name normalization across different API services
nft
NFT aggregation from multiple sources
normalize
Data normalization types for aggregating responses from different API sources
portfolio
Portfolio aggregation from multiple API sources
price
Price aggregation from multiple API sources
swap
Swap quote aggregation from multiple DEX aggregator sources
yields
Yield aggregation from Curve and DefiLlama

Structs§

AggregatedResult
Aggregated result from multiple sources
LatencyMeasure
Helper to measure async operation latency
SourceResult
Result from a single API source

Enums§

PriceSource
Price source enum for CLI selection and aggregation

Functions§

get_cached_config
Get the cached config file, loading it once if needed.