fetch_ipor_vault_is_listed
Documentation for eth_defi.erc_4626.vault_protocol.ipor.offchain_metadata.fetch_ipor_vault_is_listed function.
- fetch_ipor_vault_is_listed(web3, vault_address, *, cache_path=PosixPath('/home/runner/.tradingstrategy/cache/ipor'), api_base_url='https://api.ipor.io', app_base_url='https://app.ipor.io', now_=None, max_cache_duration=datetime.timedelta(days=2))
Check whether IPOR lists a vault in public offchain sources.
vaults-customization-listis intentionally not treated as the sole source of truth because many live IPOR vaults have no custom description. The broad/fusion/vaultslist is checked first, with the customisation API and frontend atomist map as fallbacks for temporary API shape changes.- Parameters
web3 (web3.main.Web3) – Web3 instance used to get the EVM chain id.
vault_address (eth_typing.evm.HexAddress) – Vault contract address.
cache_path (pathlib.Path) – Directory for IPOR cache files.
api_base_url (str) – IPOR data API base URL.
app_base_url (str) – IPOR Fusion app base URL.
now – Override current time for tests.
max_cache_duration (datetime.timedelta) – Cache time-to-live.
now_ (Optional[datetime.datetime]) –
- Returns
Truewhen the vault appears in IPOR public offchain data.- Return type