Online quotes fetching latest stock price but incorrect date; currency exchange rate also not working

Justin Smith justin at smithpolglase.com
Sat Feb 17 21:10:45 EST 2018


Hi,

Gnucash is not updating stock quotes correctly for me. The stock price is
correct but an incorrect date is used.

This is confirmed when testing using gnc-fq-dump. E.g.

ALPHAVANTAGE_API_KEY=<mykey> gnc-fq-dump alphavantage NAB.AX
Finance::Quote fields Gnucash uses:
    symbol: NAB.AX               <=== required
      date: 02/15/2018           <=== recommended
  currency: AUD                  <=== required
      last: 29.2200              <=\
       nav:                      <=== one of these
     price:                      <=/
  timezone:                      <=== optional

Today's date is Feb 18. The price is actually the closing price for last
Fri 16 Feb.

Gnucash then overwrites the historical price for Feb 15, with the price for
Feb 16.

This happens for all my ASX stocks.

At the same time, Gnucash is also consistently returning the error "Unable
to retrieve quotes for these items: CURRENCY:USD". This sounds unrelated if
it wasn't for the fact that it started happening at the same time as the
above date issue...

I am running GnuCash 2.6.17 on Ubuntu 17.04 Zesty (PPA). And Finance::Quote
1.48 (installed from git).

Any ideas?


Thanks,
Justin.


More information about the gnucash-user mailing list