Update Stock And Currencies still Fail

Thomas Baumgart thb at net-bembel.de
Sun May 14 12:12:09 BST 2023


Hi,

On Sonntag, 14. Mai 2023 09:29:37 CEST Michael Calder via KMyMoney wrote:

> G'day ,
> 
> I have read KMyMoney Digest, Vol 149, Issue 2
> 
> I have been unable to download from yahoo since 04 May.
> 
> Using Synaptic Package Manager I have reinstalled 5.0.8-1 build3
> and tried this URL:
> 
> https://query1.finance.yahoo.com/v6/finance/quote?fields=regularMarketPrice&
> symbols=BMY

Here you use BMY as symbol ...
> 
> When I attempt to d/l prices I get:
> 
> Fetching URL ...
> Malformed URL .

... Wow, that is strange, why is the URL malformed?

> Unable to update price for ANZ.AX (empty quote data)

... now you talk about ANZ.AX ...
> 
> which continues for all 13 stocks shares).

So it looks more like a general problem, but I am sure you already
know/expect that.

> My Online Quotes Configure is:
> 
> Identifer: %1
> Identify by: Symbol
> Price: "regularMarketPrice":((\d+|\d{1,3}(?:[,]\d{3})).\d+)
> Date: "regularMarketTime":([\d]+)

That looks OK to me.

> Opening the URL gets:
> 
> > {"quoteResponse":{"result":[{"language":"en-US","region":"US","quoteType":"ECNQUOTE","typeDisp":"ECNQUOTE","quoteSourceName":"Delayed Quote","triggerable":true,"customPriceAlertConfidence":"HIGH","exchangeTimezoneName":"America/New_York","exchangeTimezoneShortName":"EDT","gmtOffSetMilliseconds":-14400000,"market":"us_market","marketState":"PRE","exchange":"NMS","esgPopulated":false,"sourceInterval":15,"exchangeDataDelayedBy":0,"tradeable":false,"cryptoTradeable":false,"firstTradeDateMilliseconds":839511000000,"fullExchangeName":"NasdaqGS","symbol":"BMW"}],"error":null}}

... and here the symbol is BMW. Somewhat hard to compare.

Let's start afresh. KMyMoney 5.0.8 is a bit too old. You should use 5.1.2 if supported
by your package manager.

The URL field should contain "https://query1.finance.yahoo.com/v6/finance/quote?fields=regularMarketPrice&symbols=%1"
without the enclosing quotes. In case you take that and use it in your browser to see what is returned
you need to replace %1 with BMY, ANZ.AX or BMW. That is what KMyMoney is doing.

> I also tried this which I saw somewhere:
> 
> https://query1.finance.yahoo.com/v6/finance/quote?fields=regularMarketPrice&symbols=%1
> 
> with the same result when I attempt to d/l prices
> 
> But the URL does not open with this message:
> 
> HTTP Status 400 - Unable to parse URI query
> type Exception report
> 
> message Unable to parse URI query
> 
> description Bad Request

Maybe, that is because the %1 is not replaced with the actual symbol when using a browser
to verify.

> I am using Linux Mint 20.3 Cinnamon, Version 5.2.7, Linux Kernel 5.4.0-148-generic
> 
> I do do Kernel upgrades when they come along. Could it be that?

Not very likely and I doubt it.

For your reference, I attach my settings here. The screenshot is taken from a
more recent development version of KMyMoney and it thus can contain additional
fields you don't see.

Hope that helps to get started.

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
The good thing about FOSS is that people can see your code and comment it.
The bad thing is that people can see your code and comment it. (asoliverez)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yahoo-finance-settings.png
Type: image/png
Size: 58974 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20230514/2ac09cde/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20230514/2ac09cde/attachment-0001.sig>


More information about the KMyMoney mailing list