table of contents
Finance::Quote::CurrencyRates::FinanceAPI(3pm) | User Contributed Perl Documentation | Finance::Quote::CurrencyRates::FinanceAPI(3pm) |
NAME¶
Finance::Quote::CurrencyRates::FinanceAPI - Obtain currency rates from https://yfapi.net/v8/finance/chart/.
SYNOPSIS¶
use Finance::Quote; $q = Finance::Quote->new(currency_rates => {order => ['FinanceAPI'], financeapi => {API_KEY => ...} }); $value = $q->currency('18.99 EUR', 'USD');
DESCRIPTION¶
This module fetches currency rates from https://yfapi.net/v8/finance/chart/ provides data to Finance::Quote to convert the first argument to the equivalent value in the currency indicated by the second argument.
This module is not the default currency conversion module for a Finance::Quote object.
API_KEY¶
https://financeapi.net requires users to register and obtain an API key.
The API key can be set by setting the Environment variable "FINANCEAPI_API_KEY" or providing a 'financeapi' hash inside the 'currency_rates' hash to Finance::Quote->new as in the above example.
Terms & Conditions¶
Use of https://yfapi.net/v8/finance/chart/ is governed by any terms & conditions of that site.
Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause.
2024-12-07 | perl v5.40.0 |