Expand description
Price aggregation from multiple API sources
This module fetches token prices from multiple sources in parallel and aggregates them into a single result.
Functionsยง
- eth_
address_ to_ symbol - Reverse map: Ethereum address to token symbol (for CCXT compatibility)
- fetch_
lp_ price - Fetch LP token price with Curve priority
- fetch_
price_ from_ source - Fetch price from a single source
- fetch_
prices_ all - Fetch prices from all available sources in parallel
- fetch_
prices_ parallel - Fetch prices from specified sources in parallel
- is_
token_ address - Check if a token identifier is a valid Ethereum address
- symbol_
to_ coingecko_ id - Map common token symbols to CoinGecko coin IDs
- symbol_
to_ eth_ address - Map common token symbols to addresses on Ethereum