GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Finance::Quote::CurrencyRates::OpenExchange(3) User Contributed Perl Documentation Finance::Quote::CurrencyRates::OpenExchange(3)

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

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

    $value = $q->currency('18.99 EUR', 'USD');

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.

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.

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.

2021-07-04 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.