fetch_ipor_customisation_list
Documentation for eth_defi.erc_4626.vault_protocol.ipor.offchain_metadata.fetch_ipor_customisation_list function.
- fetch_ipor_customisation_list(cache_path=PosixPath('/home/runner/.tradingstrategy/cache/ipor'), api_base_url='https://api.ipor.io', now_=None, max_cache_duration=datetime.timedelta(days=2))
Fetch and cache the IPOR vault customisation list.
The API returns a single JSON array covering all chains. We index by
(chain_id, checksummed_address)for fast lookup.Single JSON cache file for all chains
Multiprocess safe via file lock
- Parameters
cache_path (pathlib.Path) – Directory for cache files (default
~/.tradingstrategy/cache/ipor/)api_base_url (str) – IPOR data API base URL
now – Override current time (for testing)
max_cache_duration (datetime.timedelta) – How long before refreshing cache (default 2 days)
now_ (Optional[datetime.datetime]) –
- Returns
Dict mapping
(chain_id, checksummed_address)toIPORVaultMetadata- Return type
dict[tuple[int, str], eth_defi.erc_4626.vault_protocol.ipor.offchain_metadata.IPORVaultMetadata]