open-source-modelling / Open_Source_Economic_Model

First open-source asset-liability model.
https://open-source.tools/
Mozilla Public License 2.0
12 stars 6 forks source link

New dataframe Units #67

Closed open-source-modelling closed 4 months ago

open-source-modelling commented 4 months ago

Until now, market value is used for each equity. This is simple to manage, however it does not scale and it limits the options for further development.

The proposal is to create a ledger of "units" of each asset. So that the market value of each position is calculated as market value * units held.

This allows to bring a separation between the movement of price of an asset and the trading activities of a each portfolio.

GregorFabjan commented 4 months ago

Units added to input test file and in main loop