You're missing that the environment in your shell isn't necessarily the one 
that GnuCash sees unless you launch GnuCash from that shell. Enter your API key 
in Preferences>Online Quotes to cover that case.

Regards,
John Ralls


> On May 28, 2022, at 4:42 PM, Steve <zep...@cfl.rr.com> wrote:
> 
> When I do Tools->Price Database->Get Quotes I get:
> 
> ERROR: ALPHAVANTAGE_API_KEY must be set for currency and quotes.
> See
> https://wiki.gnucash.org/wiki/Online_Quotes/#Source_Alphavantage.-2C_US
> 
> and yet:
> 
> steve@stevesdesktop:~/Downloads$ env|grep ALPHAVANTAGE
> ALPHAVANTAGE_API_KEY=D5IXXXXXXXXXXX
> 
> steve@stevesdesktop:~/Downloads$ gnc-fq-dump currency GBP USD
> 1 GBP = 1.2630887 USD
> 
> steve@stevesdesktop:~/Downloads$ gnc-fq-dump yahoo_json GOOGL
> Finance::Quote fields Gnucash uses:
>   symbol: GOOGL                <=== required
>     date: 05/27/2022           <=== recommended
> currency: USD                  <=== required
>     last: 2246.33              <=\       
>      nav:                      <=== one of these
>    price:                      <=/        
> timezone:                      <=== optional
> steve@stevesdesktop:~/Downloads$ 
> 
> I have all my quotes set up to use yahoo_json so what am I missing?
> 
> Steve
> _______________________________________________
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.

_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to