[GNC] Problems getting prices from Yahoo as JSON

Klaus Dahlke kdahlke at gmx.de
Sat Mar 1 08:02:33 EST 2025


Same here:
I installed finance-quote via 'cpanm Finance::Quote' on Arch Linux. Package was downloaded, installation was only successful with the --force option


The first try run into an early error:
$ ./stockdump.pl yahoo_json PJS1.DE
$VAR1 = {$crumb =
          'PJS1.DEsuccess' => 0,
          'PJS1.DEerrormsg' => 'Error accessing query2.finance.yahoo.com/v1/test/getcrumb: '
        };

Accessing the URL in line 136 in YahooJSON.pm with a web browser produced as result 'EXqqcFK8sVB'. This, I commented the lines 136 to 144 and inserted 'my $crumb = 'EXqqcFK8sVB';

But overcoming this hurdle still lead to a successful retrievel:

$ ./stockdump.pl yahoo_json PJS1.DE
$VAR1 = {
          'PJS1.DEsymbol' => 'PJS1.DE',
          'PJS1.DEsuccess' => 0,
          'PJS1.DEerrormsg' => 'Error retrieving quote for PJS1.DE. Attempt to fetch the URL https://query2.finance.yahoo.com/v11/finance/quoteSummary/?symbols=PJS1.DE&crumb=EXqqcFK8sVB&modules=price,summaryDetail,defaultKeyStatistics resulted in HTTP response 429 (Too Many Requests)'
        };

Also incrementing the interface version to v12 or v13 produces the same error.

Best regards
Klaus


On Fri, 28 Feb 2025 19:38:03 +0000
Adrian Holbrook <megagrumpy at hotmail.com> wrote:

> I am having the same problem as reported on a recent thread. I was not sure how to respond on the thread as the reply arrow was grayed out. I am not sure how to make the quick fix mentioned by Kalpesh Patel as I cannot find the file YahooJSOM.pm. Can anyone help?
>
> Thanks
>
> Adrian
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.


More information about the gnucash-user mailing list