1Finance::Quote::CurrencUysRearteCso:n:tArliFpbihunataVenadcnetP:ae:grQelu(o3Dt)oec:u:mCeunrtraetnicoynRates::AlphaVantage(3)
2
3
4
6 Finance::Quote::CurrencyRates::AlphaVantage - Obtain currency rates
7 from https://www.alphavantage.co
8
10 use Finance::Quote;
11
12 $q = Finance::Quote->new(currency_rates => {order => ['AlphaVantage'],
13 alphavantage => {API_KEY => ...}});
14
15 $value = $q->currency('18.99 EUR', 'USD');
16
18 This module fetches currency rates from https://www.alphavantage.co and
19 provides data to Finance::Quote to convert the first argument to the
20 equivalent value in the currency indicated by the second argument.
21
22 This module is the default currency conversion module for a
23 Finance::Quote object.
24
26 https://www.alphavantage.co requires users to register and obtain an
27 API key, which is also called a token.
28
29 The API key may be set by either providing a alphavantage hash inside
30 the currency_rates hash to Finance::Quote->new as in the above example,
31 or by setting the environment variable ALPHAVANTAGE_API_KEY.
32
34 Use of https://www.alphavantage.co 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.38.0 Fi2n0a2n3c-e0:8:-Q1u3ote::CurrencyRates::AlphaVantage(3)