iter_midas_registry_products

Documentation for eth_defi.midas.registry.iter_midas_registry_products function.

iter_midas_registry_products(*, require_historical_contracts=False, require_adapter_data=False)

Iterate product-like entries from the Pythonised Midas registry.

Payment token and access-control sections are skipped. If require_historical_contracts is true, only entries with both token and dataFeed are yielded. These are the minimum contracts needed for historical share price and TVL reads. If require_adapter_data is true, deployment metadata is also required so the shared scanner can create a historical lead with a deterministic start block.

Parameters
  • require_historical_contracts (bool) – Filter to entries that can be sampled by the Midas datafeed scanner.

  • require_adapter_data (bool) – Filter to entries that can be exposed through eth_defi.midas.

Returns

Iterator of typed registry product entries.

Return type

collections.abc.Iterator[eth_defi.midas.registry.MidasRegistryProduct]