apply_coingecko_mapping_file
Documentation for eth_defi.feed.stablecoin_rate.apply_coingecko_mapping_file function.
- apply_coingecko_mapping_file(data_dir, mapping_path, progress_bar=False)
Apply explicit CoinGecko id mappings to stablecoin YAML files.
The mapping JSON shape is intentionally simple:
{ "usdx": { "Kava USDX": { "coingecko_id": "usdx", "coingecko_link": "https://www.coingecko.com/en/coins/usdx" } } }
Top-level keys are stablecoin slugs. For multi-entry files, the nested key can be the entry name or a numeric entry index encoded as a string. Standard files may use
"default".- Parameters
data_dir (pathlib.Path) –
mapping_path (pathlib.Path) –
progress_bar (bool) –
- Return type