create_apex_vault_row

Documentation for eth_defi.apex.vault_data_export.create_apex_vault_row function.

create_apex_vault_row(vault_id, *, name, description, short_description=None, tvl, share_count, created_at, first_seen, status, redemption_delay=None)

Create one synthetic shared-pipeline row for an ApeX native vault.

The ApeX platform vault ID remains the identity through the apex-vault-{vault_id} address. Fee source values are deliberately not interpreted because ApeX does not authoritatively document their units. Recognised lifecycle statuses from the public ApeX vault ranking endpoint determine public deposit access. Unknown statuses remain unknown; they are not treated as closed merely because history collection handles them as non-terminal.

Parameters
  • vault_id (str) – Stable ApeX platform vault ID.

  • name (str) – Vault display name.

  • description (Optional[str]) – Vault strategy description.

  • short_description (Optional[str]) – Optional concise curated strategy description.

  • tvl (Optional[float]) – Current total value in ApeX USDT terms.

  • share_count (Optional[float]) – Current source-reported share count.

  • created_at (Optional[datetime.datetime]) – Source creation timestamp as naive UTC.

  • first_seen (datetime.datetime) – Reader first-observation timestamp as naive UTC.

  • status (str) – Raw ApeX lifecycle status.

  • redemption_delay (Optional[datetime.timedelta]) – Time after a subscription before its shares are redeemable.

Returns

Synthetic vault specification and metadata row.

Raises

ValueError – If the platform vault ID is blank.

Return type

tuple[eth_defi.vault.base.VaultSpec, eth_defi.vault.vaultdb.VaultRow]