[GNC] Yahoo JSON Quotes now random bad
Bruce Schuck
bschuck at asgard-systems.com
Fri Jun 20 20:40:53 EDT 2025
Thu Jun 19 16:51:08 EDT 2025, Tom Teixeira writes:
> I also tried "gnucash-cli --quotes dump ..." with bloomberg but
> couldn't get any results. The "fool" quote source works for plain
> stocks, but doesn't seem to have mutual funds or preferred stocks.
> Neither troweprice nor trowprice_direct worked, but did produce
> error messages that might lead somewhere. The tiaacref source seemed
> to hang.
While taking a quick look, I stumbled on how to look up funds on Fool.
Seems that inserting a "." before the character does the trick. Here I
changed "FCNTX" to "FCNT.X". I am thinking of having the module check
for a 5-char symbol ending in "X" and changing it to ".X" for the lookup.
% ~/.cpan/build/Finance-Quote-1.65-0/Examples/stockdump.pl fool FCNT.X
$VAR1 = {
'FCNT.Xopen' => '22.38',
'FCNT.Xname' => 'Fidelity Contrafund',
'FCNT.Xdate' => '06/18/2025',
'FCNT.Xhigh' => '22.38',
'FCNT.Xcurrency' => 'USD',
'FCNT.Xsymbol' => 'FCNT.X',
'FCNT.Xvolume' => undef,
'FCNT.Xlow' => '22.38',
'FCNT.Xsuccess' => 1,
'FCNT.Xisodate' => '2025-06-18',
'FCNT.Xlast' => '22.38',
'FCNT.Xmethod' => 'fool'
};
Unfortunately I didn't find a quick fix for Troweprice or TiaaCref.
TIAA-CREF's website seems to be using HTTP/2.0. Even "curl" doesn't work
on older (ex: Ubuntu 22.04) Linux OS's. Not sure if just updating all
the appropriate Perl modules would help, as they may be limited to the
functionality of C libraries on the system. I have not spent that much
time on it. I didn't look at the Bloomberg module. It was working not
too long ago. <shoulder shrug>
This may be the end of the line for the Troweprice and TiaaCref modules.
I'll give it some time to see if someone else in the community tackles
either of them.
Bruce S.
More information about the gnucash-user
mailing list