[BUG] Gain/Loss is not reported correctly when an holding is in a different currency than the portfolio
I have a USA Bond that is positive gain if you look at it in USD, but actually the USD-EUR exchange rate went so bad that I am actually losing money. My broker is showing this loss correctly, but Wealthfolio is showing it wrongly, showing only the gain in USD, even if the account is in EUR. For sure, when the bond expires I will insert the sell transaction in EUR and then I will have the correct loss in my account. But at the moment the total wealth of the holding is wrong because of this problem. It should be taken into account the exchange rate at transaction time and the current exchange rate to calculate the real value of the holdings.
Similar problem here. I think the issue is in HoldingsCalculator::calculate_next_holdings It recomputes cost basis using the snapshot-date FX rate, which means cost basis moves with FX. That eliminates all FX P&L and leaves only the USD price gain. Cost basis must use activity-date FX and stay fixed.
Cost basis must use activity-date FX and stay fixed.
Will second this. This accounting issue was a major concern for competing project Ghostfolio for a few years. They finally got it fixed. If I invest $1,000CAD in a USD stock on Dec 1st, my cost basis must always stay as $1,000CAD.