Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Finance::Quote::CurrencyRates::OpenExchange

Name Finance::Quote::CurrencyRates::OpenExchange
Version 1.51
Located at /usr/share/perl5
File /usr/share/perl5/Finance/Quote/CurrencyRates/OpenExchange.pm
Is Core No
Search CPAN for this module Finance::Quote::CurrencyRates::OpenExchange
Documentation Finance::Quote::CurrencyRates::OpenExchange
Module Details Finance::Quote::CurrencyRates::OpenExchange

NAME

Finance::Quote::CurrencyRates::OpenExchange - Obtain currency rates from https://openexchangerates.org


SYNOPSIS

    use Finance::Quote;

    $q = Finance::Quote->new(currency_rates => {order        => ['OpenExchange'],
                                                openexchange => {API_KEY => ...}});
    $value = $q->currency('18.99 EUR', 'USD');


DESCRIPTION

This module fetches currency rates from https://openexchangerates.org and provides data to Finance::Quote to convert the first argument to the equivalent value in the currency indicated by the second argument.

This module caches the currency rates for the lifetime of the quoter object, unless 'cache => 0' is included in the 'openexchange' options hash.


API_KEY

https://openexchangerates.org requires users to register and obtain an API key.

The API key must be set by providing a 'openexchange' hash inside the 'currency_rates' hash to Finance::Quote->new as in the above example.


Terms & Conditions

Use of https://openexchangerates.org 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 Diver brought to you by ScriptSolutions.com © 1997- 2026