fetch_stablecoin_rates
Documentation for eth_defi.feed.stablecoin_rate.fetch_stablecoin_rates function.
- fetch_stablecoin_rates(targets, timeout=20.0, progress_bar=False)
Fetch CoinGecko prices for due stablecoin targets.
- Parameters
targets (Sequence[eth_defi.feed.stablecoin_rate.StablecoinRateTarget]) – Due targets with resolved CoinGecko ids.
timeout (float) – HTTP request timeout in seconds.
progress_bar (bool) – Show a tqdm progress bar for CoinGecko request batches.
- Returns
CoinGecko response keyed by coin id.
- Return type