okama.Portfolio.close_monthly

property Portfolio.close_monthly

Portfolio size monthly time series.

Portfolio size is shown in base currency units. It is similar to the close value of an asset. Initial portfolio value is equal to 1000 units of base currency.

Returns:
pd.Series

Monthly portfolio size time series.

Notes

‘close_mothly’ shows the same output as the ‘wealth_index’. This property is required as Portfolio must have the same attributes as an Asset.

Examples

>>> import matplotlib.pyplot as plt
>>> pf = ok.Portfolio(['SPY.US', 'BND.US'], ccy='USD')
>>> pf.close_monthly.plot()
>>> plt.show()
../_images/okama-Portfolio-close_monthly-1.png