[GNC] Yahoo JSON - throwing unauthorized error

Bruce Schuck bschuck at asgard-systems.com
Sat May 6 15:12:12 EDT 2023


Ken,

I am currently evaluating which of the alternatives is the best 
replacement. I'm also a little hopeful that in the meantime the 
functionality of the current URL/API is restored before the time is 
spent to not only make the changes, but the related housekeeping 
necessary before pushing an official release to CPAN.

In the mean time, for those savvy enough to find and edit the 
YahooJSON.pm file on their system, a quick fix is to change this line:

my $YIND_URL_HEAD = 
'https://query1.finance.yahoo.com/v7/finance/quote?symbols=';

to:

my $YIND_URL_HEAD = 
'https://query1.finance.yahoo.com/v6/finance/quote?symbols=';

Be wary that there may be multiple versions of the YahooJSON.pm file and 
a system, so be certain to modify the correct one.

- Bruce S.


More information about the gnucash-user mailing list