dump-finance-quote and BRKa BRKb
Dave Reed
drlinux at columbus.rr.com
Fri Dec 10 10:24:56 EST 2004
On Friday 10 December 2004 02:51, Michael Goll wrote:
> Hi,
>
> I'm using gnucash 1.8.9 and I was having trouble with getting quotes
for BRKa
> and BRKb. I finally figured out the suffix a and b must be in
lowercase.
> Gnucash supports this, but dump-finance-quote does not.
>
> For example,
>
> dump-finance-quote usa BRKa
>
> The query for BRKA failed!! Found data for stock(s) BRKa instead.
>
> though it does when you use the -v option.
>
> The culprit is
>
> $stock =~ tr/a-z/A-Z/;
>
> When I comment it out, dump-finance-quote works for BRKa, however, I
assume it
> was put in there for a reason.
>
> Can this be fixed? Or am I missing something?
I don't know, but you can make a quick hack on your local copy by
changing that to:
if (($stock != "BRKa") && ($stock != "BRKb")) {
$stock =~ tr/a-z/A-Z/;
}
My Perl is rusty but I think that is correct.
Dave
More information about the gnucash-user
mailing list