[GNC] Online quotes not working for currency rates (Perl library works)
John Ralls
jralls at ceridwen.us
Mon Oct 21 11:11:09 EDT 2024
It Is indeed caused by GnuCash itself, and it’s fixed in git for the next release. It’s available in nightly builds, but we don’t have those for MacOS. The simplest fix for you is to use GnuCash 5.8 until 5.10 is released in December.
Regards,
John Ralls
> On Oct 21, 2024, at 07:55, Chang Wang <wangchang327 at gmail.com> wrote:
>
> Hi,
> I'm having trouble getting the quotes of currency exchange rates using
> Finance::Quote.
>
> The situation:
>
> * I can get quotes successfully for stocks using "Get Quotes" in the
> price database. But not the currency I'm using.
>
> * I'm on MacOS.
> ```
> ALPHAVANTAGE_API_KEY=XXX
> /Applications/Gnucash.app/Contents/MacOS/gnucash-cli --quotes dump
> currency USD JPY
> ```
> gives
> ```
> JPY Finance::Quote returned no data and set no error.
> ```
> The same error message also appears in GUI (I have entered the API key
> in the preferences).
>
> However, if I write a Perl script that directly calls Finance::Quote
> with my API key, I can get the USDJPY rate successfully.
>
> * I'm also unable to change the quote source of currency rates from
> the security editor. The default is "Single - currency." When I change
> it to something else and hit OK, next time I open it, the source is
> reverted back to single.
>
> I think this might be caused by GnuCash itself? Any hint on how I can
> circumvent this problem? Thanks!
>
> Best,
> Chang
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
More information about the gnucash-user
mailing list