Finance::Quote Keys and Options

Bruce Schuck bschuck at asgard-systems.com
Sat May 18 19:33:25 EDT 2024


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

AlphaVantage is no longer the the only module that requires an API key 
for retrieving data. The following recently (or somewhat) added modules 
require API keys:

TwelveData - TWELVEDATA_API_KEY
Stockdata - STOCKDATA_API_KEY
CurrencyFreaks - CURRENCYFREAKS_API_KEY

Two existing currency rates modules also have API keys, Fixer and 
OpenExchange. I need to modify them to accept the keys as environment 
variables and not force them to have the key passed as arguments to the 
methods.

WRT currency, the "FQ_CURRENCY" environment variable can be used to 
utilize a currency rates method other than the default AlphaVantage.

As we have seen that requiring users to set environment variables has 
been problematic at times, what is the likelihood of being able to set 
these as GnuCash preferences much like setting the AlphaVantage key in 
preferences will set an environment variable?

Upcoming modules with API keys are FinanceAPI (FINANCEAPI_API_KEY) and 
MarketStack (MARKETSTACK_API_KEY).

Thank you.

Bruce S.
-----BEGIN PGP SIGNATURE-----

iF0EARECAB0WIQRzL0H5rBaeDPnpeL1IjAeprJFQBwUCZkk6kwAKCRBIjAeprJFQ
B59IAKDe8FYJ8xZbspGy5gp0msZKULlwdgCg7cgsPQVP9LeXyLWlZG++OwLe88w=
=PspL
-----END PGP SIGNATURE-----


More information about the gnucash-devel mailing list