StockTicker
StockTicker copied to clipboard
Whole portfolio value does not account for different currencies
Describe the bug
The "whole portfolio" view in the app shows the sum of the holdings of each stock, however it appears to be based on a simple sum()
of the positions which does not account for positions in different currencies.
To Reproduce Steps to reproduce the behavior:
- Add a position for a security traded in US dollars (e.g. QQQ)
- Add a position for a security traded in a foreign currency (e.g. EXS1)
- Click on the briefcase icon in the main application view
- The value of the portfolio is the
sum()
all positions, irrespective of different currencies
Expected behavior For this example, I added 100 shares of QQQ at a price of $100.00, and 100 shares of EXS1 at a price of 100,00€
- The present value of the QQQ position is $31.717,00
- The present value of the EXS1 position is €12.482,00
The total value of the portfolio is shown as 44.199,00, which is SUM(31717, 12482)
however these are different currencies (with USD being worth €0,844 at the time of writing).
In my opinion, the portfolio sum should either be:
- The sum of positions for each currency held (e.g. total of positions in USD, EUR, JPY, etc) e.g. $31.717,00 ; €12.482,00
- The sum of positions in one currency, with other currencies converted to the displayed currency e.g. €39.251,15
Screenshots
Smartphone (please complete the following information):
- Device: HTC 10
- OS: LineageOS 17.1
- App version: F-Droid 3.9.738
@premnirmal Hey, any progress here? Please fix this issue.
In my opinion, the portfolio sum should either be:
1. The sum of positions for each currency held (e.g. total of positions in USD, EUR, JPY, etc) e.g. $31.717,00 ; €12.482,00 2. The sum of positions in one currency, with other currencies converted to the displayed currency e.g. €39.251,15
Or both. But either option would be a great improvement. Currently the total is meaningless for portfolios with holdings in multiple currencies.