Skip to main content

pricing.NaturalPrice

A portfolio’s price and its natural allocation, from Portfolio.price.

Usage

Source

pricing.NaturalPrice()

Attributes

Name Description
allocated Each unit’s share, a list of Pentagon; the amounts add up to total.
total The portfolio, a Pentagon.
units Unit names.

allocated

Each unit’s share, a list of Pentagon; the amounts add up to total.

allocated: list[Pentagon]


total

The portfolio, a Pentagon.

total: Pentagon


units

Unit names.

units: list[str]

Methods

Name Description
to_dict() The table as a dict of columns: unit (the units, then

to_dict()

The table as a dict of columns: unit (the units, then

Usage

Source

to_dict()

"total"), loss, margin, premium, capital, assets, loss_ratio, premium_to_capital and return_on_capital. pandas.DataFrame(price.to_dict()) makes a frame of it.

Returns
dict of str to list