Finance-Quote 1.44 released!
Cam Ellison
cam at ellisonet.ca
Fri Nov 10 13:30:27 EST 2017
On 10/11/17 05:21 AM, Erik Colson wrote:
> Cam,
>
> I don't know about gnucash itself since I don't use it. F::Q handels
> the symbols correctly as shown below for CMI.V:
>
> ~/.../finance-quote/Examples >>> perl stockdump.pl alphavantage CMI.V
> $VAR1 = {
> 'CMI.Vopen' => '1.1400',
> 'CMI.Vclose' => '1.1000',
> 'CMI.Vcurrency_set_by_fq' => 1,
> 'CMI.Vvolume' => '5000',
> 'CMI.Vmethod' => 'alphavantage',
> 'CMI.Vhigh' => '1.1400',
> 'CMI.Vlow' => '1.1000',
> 'CMI.Vcurrency' => 'CAD',
> 'CMI.Vsymbol' => 'CMI.V',
> 'CMI.Vlast' => '1.1000',
> 'CMI.Vsuccess' => 1,
> 'CMI.Vdate' => '11/09/2017',
> 'CMI.Visodate' => '2017-11-09'
> };
>
> The required fields for gnucash return correct data. So F::Q does the
> job. There will probably be something misconfigured in your gnucash
> setup..
>
>
I am suspecting as much. There is no alphavantage key error, so it is
clearly present in the bash environment. For example:
gnc-fq-dump alphavantage ALV.V
Finance::Quote fields Gnucash uses:
symbol: ALV.V <=== required
date: 11/10/2017 <=== recommended
currency: CAD <=== required
last: 0.1950 <=\
nav: <=== one of these
price: <=/
timezone: <=== optional
"nav" is not set, which may be the problem, or one of them. I notice
that it is blank when I test it with US stocks as well, so perhaps not.
Gnucash is throwing an error on something for which no or insufficient
information is available. I'll go look at bug reports.
Thank you very much for your time and effort
Cam
More information about the gnucash-user
mailing list