PortfolioValuation

Documentation for eth_defi.vault.valuation.PortfolioValuation Python class.

class PortfolioValuation[source]

Valuation calulated for a portfolio.

See eth_defi.vault.base.VaultPortfolio for the portfolio itself.

Attributes summary

denomination_token

The reserve currency of this vault

spot_valuations

Individual spot valuations

Methods summary

__init__(denomination_token, spot_valuations)

get_total_equity()

How much we value this portfolio in the denomination_token

denomination_token: eth_defi.token.TokenDetails

The reserve currency of this vault

spot_valuations: dict[eth_typing.evm.HexAddress, decimal.Decimal]

Individual spot valuations

get_total_equity()[source]

How much we value this portfolio in the denomination_token

Return type

decimal.Decimal

__init__(denomination_token, spot_valuations)
Parameters
Return type

None