resolve_canonical_feeder_yaml
Documentation for eth_defi.feed.sources.resolve_canonical_feeder_yaml function.
- resolve_canonical_feeder_yaml(canonical_feeder_id, mappings_dir)
Find the YAML file for a canonical feeder, searching by role priority.
Searches subdirectories in priority order: stablecoins/, protocols/, curators/, vaults/. Returns the path to the first matching YAML file whose filename stem equals canonical_feeder_id.
- Parameters
canonical_feeder_id (str) – The feeder-id slug to look up.
mappings_dir (pathlib.Path) – Root directory containing role subdirectories (e.g.
eth_defi/data/feeds).
- Raises
FileNotFoundError – When no matching YAML file is found in any role subdirectory.
- Return type