get_vault_for_pair#
API documentation for tradeexecutor.ethereum.vault.vault_routing.get_vault_for_pair Python function.
- get_vault_for_pair(web3, target_pair, token_cache=None)[source]#
Get a cached Vault instance based on a trading pair.
Instance has a web3 connection object
- Parameters:
token_cache (eth_defi.token.TokenDiskCache | None) – Token cache for caching ERC-20 token metadata. If not provided, uses default cache.
web3 (Web3) –
target_pair (TradingPairIdentifier) –
- Return type:
ERC4626Vault