Bug 381419

Summary: KMymoney does not convert online web quotes with a different currency
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: aspotashev, stephen.henstridge
Priority: NOR    
Version: 4.8.0   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Ralf Habacker 2017-06-19 23:01:15 UTC
http://funds.ft.com/uk/Tearsheet/Summary?s=LU0063916489

How to reproduce:
1. start kmymoney
2. goto to settings->online web quotes and apply the changes from bug 381399 comment 5 to the "Financial Times UK Funds" entry.
3. Add a new investment account 
4. Create a new investment by selecting the account created with 3. and use EUR currency.
5. open context menu and select "new investition" 
6. add 'LU0063916489' as stock symbol, name it 'test' and use EUR currency
7. press okay, select "Financial Times UK Funds" and press okay
8. select online price update in just created investment from the context menu

What happens ?
KMymoney fetches the related price and thinks the price has been returned in EUR instead of converting the currenty from USD to EUR.

What is expected ?
KMymoney should detect the curreny returned from the online web price quote and  convert the price into the investment account curreny.

Additional informations:
The "Financial Times UK Funds" return the currency on the result page in the form 

<span class="mod-ui-data-list__label">Price (USD)</span>

which makes it possible to parse the currency with an additional "currency" regex added to the "online web quote" configuration.
Comment 1 StephenJH 2017-06-20 07:19:40 UTC
I think you need to have the Base Currency for the account set to EUR, and the Trading Currency for the stock set to USD
Comment 2 Ralf Habacker 2017-06-20 07:55:47 UTC
(In reply to StephenJH from comment #1)
> I think you need to have the Base Currency for the account set to EUR, and
> the Trading Currency for the stock set to USD

Thanks that helped. 

To avoid that more people are stumpling into the issue like me it would be good to have a related hint somewhere in the "create stock account" dialog.

It would be even better if online price quote fetches the currency too and prints a warning if the stock currency is not the same.
Comment 3 Justin Zobel 2022-11-30 05:28:28 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-15 05:13:22 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-30 05:24:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!