yccheok / jstock

JStock is a free stock market software for 28 countries.
https://jstock.org
657 stars 345 forks source link

Dividend currency #104

Open jperville opened 7 years ago

jperville commented 7 years ago

The use case

As an international user of jstock on Linux and on Android, I would like jstock to treat the dividend amounts as if they are in the stock's native currency (USD, DKK, GBP) and those amounts to be displayed in both the stock's native currency and in my native currency (EURO) So that I know how much dividend I really received my my native currency on my internationally-diversified portfolio

The long story

Recently, I received 45 DKK of dividends from Novo Nordisk company, which is the equivalent of 6 EUR. Inputing the value of 45 in the "add dividend" window has the result of making the total dividends displayed by jstock look strange to me, because I thought that jstock would convert the currency exactly as it does convert the currency in the "Buy/Sell" windows (I bought the Currency option on jstock android).

So, I would like jstock to have the following behavior regarding dividends:

Having to convert the dividend amounts from their native currency to my own currency before input it in jstock is very cumbersome, hence the filling of this issue.

yccheok commented 6 years ago

Sorry for late reply!

Recently, we do support dividend information, in converted currency, in Android Performance Chart.

However, currency conversion feature is still not as good as Android's version. For instance, you can't specific both foreign currency symbol, and local currency symbol in Desktop. This shall be improved.

Here's our plan, to support better currency conversion feature in both Dekstop and Android.

We make assumption that, if the stock is traded in USD currency, the dividend will also received in USD currency.

However, we will make exception for certain stocks. For instance, some stock are traded in British Pence currency. However, dividend will receive in British Pound currency.

Does that looks good to you?

jperville commented 6 years ago

Hello @yccheok , your proposal looks great to me.

If a stock is traded in currency X, dividend amount received from that stock is assumed to be in currency X (that's what I do already today). Regarding the GBX case (English stock is often traded in pence of GPB), I don't mind inputting the dividend amount in GBX (no exception needed), as long as I can see a label with the currency of the current stock (eg. USD, GBX) when entering the dividend amount. This improved dividend input interface would be consistent with what we already have in "Buy" and "Sell" tabs in the Android version.