Currency/metals quotes with new f::q 1.45?

John Ralls jralls at ceridwen.us
Sun Nov 12 20:52:22 EST 2017


> On Nov 12, 2017, at 3:54 PM, Erik Colson <eco at ecocode.net> wrote:
> 
> 
> listreader <suselist at cableone.net> writes:
> 
>> I had to find the source of currency-lookup.pl via google but did and
>> "perl -Ilib currency-lookup.pl XAG USD" works: "XAG->USD = 16.87475774"
>> (price varying from yours because the market is now open for the day)
>> but "gnc-fq-dump alphavantage XAG" still gives me "0.0200".  Should I
>> NOT be using alphavantage for the currency quotes in gc?
> 
> I have no idea.  I don't know how gnucash actually gets the quote for
> currencies from F::Q.  It might i.e. use another method...  Maybe a
> developper from GnuCash can help here?

Erik,

We use the Finance::Quote currency method, see
https://github.com/Gnucash/gnucash/blob/maint/src/quotes/gnc-fq-helper.in#L346 and https://github.com/Gnucash/gnucash/blob/maint/src/quotes/gnc-fq-dump#L165.

When using the scripts directly one must use source currency, e.g.

gnc-fq-dump currency USD GBP

Regards,
John Ralls



More information about the gnucash-user mailing list