create_grvt_vault_row
Documentation for eth_defi.grvt.vault_data_export.create_grvt_vault_row function.
- create_grvt_vault_row(vault_id, chain_vault_id, name, description, tvl, management_fee=None, performance_fee=None)
Create a synthetic VaultRow for a GRVT native vault.
Builds a
VaultRowthat matches whatcalculate_vault_record()expects, using the GRVT chain ID.GRVT management fees (0-4%) are internalised via daily share minting (already reflected in share price). Performance fees (0-40%) are charged at redemption (externalised, NOT in share price). Fee mode is
externalisedso the pipeline treats the share price as gross of performance fees.Per-vault fee percentages are fetched from the GRVT public GraphQL API (
managementFeeandperformanceFeefields). When fees are known, the downstream pipeline can calculate net returns by deducting the externalised performance fee.- Parameters
vault_id (str) – Vault string ID on the GRVT platform (e.g.
VLT:xxx).chain_vault_id (int) – Numeric on-chain vault ID used by the market data API and the strategies page URL.
name (str) – Vault display name.
description (str | None) – Vault description text.
tvl (float) – Current TVL in USDT.
management_fee (float | None) – Annual management fee as a decimal fraction (e.g. 0.01 = 1%).
Noneif not available.performance_fee (float | None) – Performance fee as a decimal fraction (e.g. 0.20 = 20%).
Noneif not available.
- Returns
Tuple of (VaultSpec, VaultRow).
- Return type
tuple[eth_defi.vault.base.VaultSpec, eth_defi.vault.vaultdb.VaultRow]