matthiasstraka / php-invest

Self-hosted stock portfolio tracking software using PHP/Symfony. It tracks portfolios across multiple brokers and automatically updates daily stock data. It allows tracking trades of raw stock and EUSIPA derivatives/instruments.
GNU General Public License v3.0
18 stars 7 forks source link

Correct dividend handling #18

Open matthiasstraka opened 2 years ago

matthiasstraka commented 2 years ago

Currently, a dividend is added as cash to the account But since it is a zero sum effect on the position, shouldn't we also subtract it from the portfolio (e.g. cash + portfolio = 0)