fetch_price_feeds

Documentation for eth_defi.enzyme.price_feed.fetch_price_feeds function.

fetch_price_feeds(deployment, start_block, end_block, read_events)[source]

Iterate configured price feeds

  • Uses eth_getLogs ABI

  • Read both deposits and withdrawals in one go

  • Serial read

  • Slow over long block ranges

  • See ComptrollerLib.sol

Warning

This function does not update status for removed price feeds. Please use fetch_updated_price_feed().

Parameters
Return type

Iterable[eth_defi.enzyme.price_feed.EnzymePriceFeed]