fetch_vault_listing_graphql
Documentation for eth_defi.grvt.vault.fetch_vault_listing_graphql function.
- fetch_vault_listing_graphql(session, graphql_url='https://edge.grvt.io/query', only_discoverable=True, timeout=30.0)
Fetch GRVT vault listing via the public GraphQL API.
Returns per-vault fee data (
managementFee,performanceFee) alongside vault metadata.The GraphQL endpoint at
https://edge.grvt.io/queryis public and requires no authentication.Example:
from eth_defi.grvt.session import create_grvt_session from eth_defi.grvt.vault import fetch_vault_listing_graphql session = create_grvt_session() vaults = fetch_vault_listing_graphql(session) for v in vaults: print(f"{v.name}: mgmt={v.management_fee}, perf={v.performance_fee}")- Parameters
- Returns
List of
GRVTVaultSummaryobjects with fee data populated.- Return type