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

Account cashflow with margin instruments is wrong #17

Open matthiasstraka opened 2 years ago

matthiasstraka commented 2 years ago

The full position size is added/removed from the account. May be tricky to simply multiply with the margin rate on close due to loss/gains