Yhoo finance online quote not working

I upgraded kmymoney to Version 5.1.92-f2f9895, and found online quote no longer works.
It used to work with yahoo finance. But now it no longer works. I did some research and tried related post in this forum, but seems yahoo finance api changed its format

for example: https://query1.finance.yahoo.com/v8/finance/chart/btc-usd
it no longer return date in correct format, returns some numbers instead, kmymoney cannot parse it.
firstTradeDate 1410912000|
regularMarketTime 1740622920|

Anyone also facing same problem? and is there any workaround?
Here is debug info:

Unable to parse symbol for BTC-USD
Price found: ‘84873.164’ (84,873.2)
Date found: ‘1740622860’
Date format found: ‘1740622860’ → ‘’
Received an invalid price for BTC-USD, unable to update

Is that conversion from BTC to USD gotten from yahoo finance or KMyMoney Currency? (Both in Settings → Online Quotes.)
If the latter, the parameters that work for me are
URL: https://fx-rate.net/%1/%2
Identify by: Symbol
Price: Today\s+=\s+([^<]+)
Date: <span class=“datetime”[^>]+>\s*\d+:\d+:\d+(\w+)\s+(\d{1,2}/\d{2}/\d{4})
Date Format: %d/%m/%y

OTOH, if the former, the parameters I use are:
URL: https://query1.finance.yahoo.com/v8/finance/chart/%1
Identifier: %1
Identify by: Symbol
Price: “regularMarketPrice”:((\d+|\d{1,3}(?:[,]\d{3})).\d+)
Date: “regularMarketTime”:([\d]+)
Date Format: %u

Try these and let us know what happens. A

Edit: These I use with the master version: KMyMoney-master-4132.

thanks!
Date Format: %u does the magic! This was missing in kmymoney config

1 Like