portfolio-performance / portfolio

Track and evaluate the performance of your investment portfolio across stocks, cryptocurrencies, and other assets.
http://www.portfolio-performance.info
Eclipse Public License 1.0
2.75k stars 577 forks source link

Add units to currencies #4106

Closed kgoderis closed 5 days ago

kgoderis commented 5 days ago

Some stocks are quoted in a different unit than the unit of the exchange rate.

For example, LSE quotes shares not in GBP, but GBPp, e.g. pence. Therefore, the stock quote retrieved from the external source, has to be divided by a 100 to have it in GBP.

Not familiar enough with the program to suggest how to tackle this, e.g. add a divisor to the quote retrieval engine, or add some kind of unit to the Instrument, or alike

kgoderis commented 5 days ago

Duplicate of https://github.com/portfolio-performance/portfolio/issues/4038