ghostfolio / ghostfolio/ghostfolio
[BUG] App not considering currency profit / loss
- Dominant language
- TypeScript
- Stars
- 9.3k
- Forks
- 1.3k
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 172
Description
Hi, either I don't know how to use the app or it completely messes activities when multiple currencies used.
Let's consider the below scenario...
Base currency: PLN
Account currency: USD
Transaction: BUY
Date: 15.10.2022
Asset: TSLA
Quantity: 10
Unit Price: 200 USD
Total investment: 2000 USD (x echange rate 4,94 = 9880 PLN)
Today: 10.10.2025
Unit Price: 413,49 USD
Value: 10 x 413,49 = 4134,9 USD
Exchange rate: 3,68
Profit in PLN: 4134,9 * 3,68 - 9880 = 5336 PLN
Therefore:
**First Activity** date is wrong. Displayed 14.10.2022 while activity date is 15.10.2022
**Change with currency effect** is wrong. It should be 5336 PLN as calculated above.
**Investment** is wrong. Should be 9 880 PLN and not 7260 PLN.
In other words, when I buy stocks in USD, I’m essentially purchasing USD with PLN at a specific exchange rate at that moment. As a result, when I later sell the stocks and convert USD back to PLN, my final return depends not only on the stock price but also on the exchange rate. How should this scenario be handled correctly in the app? Because it seems like it’s either not working or I’m not using it properly :(
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.