VaultHistoricalRead
Documentation for eth_defi.vault.base.VaultHistoricalRead Python class.
- class VaultHistoricalRead[source]
Vault share price and fee structure at the point of time.
Attributes summary
Vault for this result is
block number of the reade
Naive datetime in UTC
What was the share price in vault denomination token
NAV / Assets under management in denomination token
Number of share tokens
What was the vault performance fee around the time
What was the vault management fee around the time
Add RPC error messages and such related to this read
Methods summary
__init__
(vault, block_number, timestamp, ...)export
()Convert historical read for a Parquet/DataFrame export.
Get parquet schema for writing this data.
- vault: eth_defi.vault.base.VaultBase
Vault for this result is
- timestamp: datetime.datetime
Naive datetime in UTC
What was the share price in vault denomination token
None if the read failed (call execution reverted)
- total_assets: decimal.Decimal | None
NAV / Assets under management in denomination token
None if the read failed (call execution reverted)
- total_supply: decimal.Decimal | None
Number of share tokens
None if the read failed (call execution reverted)
- errors: list[str] | None
Add RPC error messages and such related to this read
Exported as empty string in Parquet if no errors, otherwise concat strings
- classmethod to_pyarrow_schema()[source]
Get parquet schema for writing this data.
Write multiple chains, multiple vaults, to a single Parquet file
- Return type
pyarrow.Schema
- __init__(vault, block_number, timestamp, share_price, total_assets, total_supply, performance_fee, management_fee, errors)
- Parameters
vault (eth_defi.vault.base.VaultBase) –
block_number (int) –
timestamp (datetime.datetime) –
share_price (decimal.Decimal | None) –
total_assets (decimal.Decimal | None) –
total_supply (decimal.Decimal | None) –
performance_fee (float | None) –
management_fee (float | None) –
- Return type
None