## pricing.PortfolioPrice


Prices of a portfolio's components and of the portfolio as a whole.


Usage


``` python
pricing.PortfolioPrice()
```


Returned by [price_portfolio](pricing.price_portfolio.md#prospicio.pricing.price_portfolio).


## Attributes

| Name | Description |
|----|----|
| [allocated](#allocated) | Each component's share of the portfolio price; these add up to |
| [standalone](#standalone) | Each component priced on its own. |
| [total](#total) | The portfolio, priced on the total of its components. |

------------------------------------------------------------------------


#### allocated


Each component's share of the portfolio price; these add up to


`allocated: list[Price]`


[total](risk.Allocation.md#prospicio.risk.Allocation.total).


------------------------------------------------------------------------


#### standalone


Each component priced on its own.


`standalone: list[Price]`


------------------------------------------------------------------------


#### total


The portfolio, priced on the total of its components.


`total: Price`


## Methods

| Name | Description |
|----|----|
| [components()](#components) | Component keys, one tuple per component. |
| [diversification()](#diversification) | Premium saved by writing the components together: the sum of the |

------------------------------------------------------------------------


#### components()


Component keys, one tuple per component.


Usage


``` python
components()
```


##### Returns


`list of tuple`  


------------------------------------------------------------------------


#### diversification()


Premium saved by writing the components together: the sum of the


Usage


``` python
diversification()
```


standalone premiums less the portfolio premium.


##### Returns


`float`
