logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Finance::Quote::CurrencyRates::FinanceAPI - Obtain currency rates from

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.

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.

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');

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.

perl v5.40.1                                       2025-05-16              Finance::Quote...tes::FinanceAPI(3pm)

See Also