HibachiVaultDailyPrice

Documentation for eth_defi.hibachi.vault.HibachiVaultDailyPrice Python class.

class HibachiVaultDailyPrice

Bases: object

One daily price snapshot for a Hibachi vault.

Parsed from the /vault/performance endpoint response.

Attributes summary

vault_id

Vault ID

date

Date of the snapshot (UTC)

per_share_price

Share price in USDT at this snapshot

tvl

TVL in USDT at this snapshot

daily_return

Daily return as a decimal fraction, or None for the first data point

Methods summary

__init__(vault_id, date, per_share_price, ...)

vault_id: int

Vault ID

date: datetime.date

Date of the snapshot (UTC)

per_share_price: float

Share price in USDT at this snapshot

tvl: float

TVL in USDT at this snapshot

daily_return: Optional[float]

Daily return as a decimal fraction, or None for the first data point

__init__(vault_id, date, per_share_price, tvl, daily_return)
Parameters
Return type

None