Skip to main content

Module price

Module price 

Source
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