[GNC] [Finance-quote-news] Finance-Quote 1.56 released!
Bruce Schuck
bschuck at asgard-systems.com
Wed May 31 13:45:38 EDT 2023
On Tue, May 30, 2023 at 08:06 PM EDT write2mark1 at gmail.com wrote:
> Finance::Quote::YahooJSON couldnt get it to work any help or advise
> appreciated
Also included was a handful of scripts that did not work.
The documentation for each module contains examples (although I have
found a few of them to be incorrect examples). But here is a quick Perl
script using the YahooJSON module (in addition to Mr. Ralls' fine
example post earlier today of using the gnucash-cli utility included
with GnuCash 5.x).
##### SNIP HERE #####
#!/usr/bin/perl
use strict;
use Finance::Quote;
my ($q, $key, $value, %info);
$q = Finance::Quote->new;
%info = $q->fetch('yahoo_json','AAPL','F');
foreach $key (keys %info) {
$value = $info{$key};
print "$key: $value\n";
}
##### SNIP HERE #####
Bruce S.
More information about the gnucash-user
mailing list