Price Editor missing a few funds
Randall Hopper
viznut at charter.net
Sat Jan 14 22:20:27 EST 2006
The price editor works well fetching quotes via Finance::Quote for most
funds and stocks I've tried. However, for a few, it strangely doesn't work
at all:
XOM - Exxon Mobil
OTCFX - T Rowe Price Small Cap Stock
VWELX - Vanguard Wellington
Attached is a Perl script that shows Finance::Quote can grab the quotes.
Any idea why these don't make it through to gnucash?
Thanks,
Randall
P.S. gnucash 1.8.9 here
-------------- next part --------------
#!/usr/bin/perl
#
# getquote - Uses Finance::Quote to fetch fund and stock quotes.
#
use Finance::Quote;
my $q = Finance::Quote->new();
my %data = $q->fetch('nasdaq', 'OTCFX','VWELX');
print "The current price of OTCFX on the NASDAQ is " . $data{'OTCFX', 'price'} ."\n";
print "The current price of VWELX on the NASDAQ is " . $data{'VWELX', 'price'} ."\n";
my %data = $q->fetch('nyse', 'XOM');
print "The current price of XOM on the NYSE is " . $data{'XOM', 'price'} ."\n";
More information about the gnucash-user
mailing list