Bug 442150

Summary: Online price update of stocks stopped working since version 5 on MacOS
Product: [Applications] kmymoney Reporter: Emanuele Andreola <emanuele.andreola>
Component: onlinebankingAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: captaincrutches
Priority: NOR    
Version: 5.1.2   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Emanuele Andreola 2021-09-07 22:18:31 UTC
SUMMARY
The online quotes update feature has stopped working since version 5. When updating quotes online I have no issue with currency rates, while every stock returns a "no price or no date" error. This happens for all my equities and all online sources.

STEPS TO REPRODUCE
1. launch update stock and currency wizard
2. Update All

OBSERVED RESULT
Fetching URL http://funds.ft.com/uk/Tearsheet/Summary?s=LU1445733824...
Identifier found: ''
Unable to update price for LU1445733824 (no price or no date)

EXPECTED RESULT


SOFTWARE/OS VERSIONS
macOS: Darwin (x86_64) release 20.6.0
Kmymoney 5.1.2-76b23fb89

ADDITIONAL INFORMATION
configuration of online source used for the bug report:

URL: http://funds.ft.com/uk/Tearsheet/Summary?s=%1
CSV URL: -
Identifier: -
Identify by: Identification number
Price: Price\D+([\d,]*\d+\.\d+)
Date: Data delayed at least 15 minutes, as of\ (.*)\.
Date format: %m %d %y
Skip html stripping: selected
Comment 1 Captain Crutches 2023-05-16 14:10:38 UTC
This is still happening on version 5.1.3: any online price update results in "no price or no date".

If I go into financequote.pl and uncomment this line - https://github.com/KDE/kmymoney/blob/master/kmymoney/misc/financequote.pl#L77 - I get various errors from various sources like 401 errors (yahoo_json), requiring an AlphaVantage API key (nasdaq, nyse, usa), and generic HTTP failures (bloomberg).
Comment 2 Thomas Baumgart 2023-05-16 15:39:38 UTC
Service has apparently been moved to https://markets.ft.com/data/funds/tearsheet/summary?s=LU1445733824:EUR

Using the old URL I get

URL found: http://funds.ft.com/uk/Tearsheet/Summary?s=LU1445733824...
Symbol found: ''
Unable to parse price for 'LU1445733824'
Unable to parse date for 'LU1445733824'

with the one shown above I see data, but it seems that the regexes to extract the date need to be adjusted to the new webpage. I get 

Symbol found: ''
Price found: '24.23' (24,23)
Date found: 'May 15 2023.</div></div><div class="mod-ui-show-
[ ... ]
service/build/v3/bundles/css?components=o-cookie-message@^6.4' -> 'Mo. Mai 15 2023'
LU1445733824 LU1445733824 Mo. Mai 15 2023 24.23