1Finance::Quote::CurrencUysRearteCso:n:tOrpiFebinunEtaxencdcheaP:ne:grQelu(o3Dt)oec:u:mCeunrtraetnicoynRates::OpenExchange(3)
2
3
4
6 Finance::Quote::CurrencyRates::OpenExchange - Obtain currency rates
7 from https://openexchangerates.org
8
10 use Finance::Quote;
11
12 $q = Finance::Quote->new(currency_rates => {order => ['OpenExchange'],
13 openexchange => {API_KEY => ...}});
14
15 $value = $q->currency('18.99 EUR', 'USD');
16
18 This module fetches currency rates from https://openexchangerates.org
19 and provides data to Finance::Quote to convert the first argument to
20 the equivalent value in the currency indicated by the second argument.
21
22 This module caches the currency rates for the lifetime of the quoter
23 object, unless 'cache => 0' is included in the 'openexchange' options
24 hash.
25
27 https://openexchangerates.org requires users to register and obtain an
28 API key.
29
30 The API key must be set by providing a 'openexchange' hash inside the
31 'currency_rates' hash to Finance::Quote->new as in the above example.
32
34 Use of https://openexchangerates.org is governed by any terms &
35 conditions of that site.
36
37 Finance::Quote is released under the GNU General Public License,
38 version 2, which explicitly carries a "No Warranty" clause.
39
40
41
42perl v5.36.0 Fi2n0a2n2c-e1:2:-Q2u7ote::CurrencyRates::OpenExchange(3)