1Finance::Quote::AlphaVaUnsteargeC(o3n)tributed Perl DocuFmiennatnactei:o:nQuote::AlphaVantage(3)
2
3
4
6 Finance::Quote::AlphaVantage - Obtain quotes from https://iexcloud.io
7
9 use Finance::Quote;
10
11 $q = Finance::Quote->new('AlphaVantage', alphavantage => {API_KEY => 'your-alphavantage-api-key'});
12
13 %info = Finance::Quote->fetch("IBM", "AAPL");
14
16 This module fetches information from https://www.alphavantage.co.
17
18 This module is loaded by default on a Finance::Quote object. It's also
19 possible to load it explicitly by placing "AlphaVantage" in the
20 argument list to Finance::Quote->new().
21
22 This module provides the "alphavantage" fetch method.
23
25 https://www.alphavantage.co requires users to register and obtain an
26 API key, which is also called a token. The token is a sequence of
27 random characters.
28
29 The API key may be set by either providing a module specific hash to
30 Finance::Quote->new as in the above example, or by setting the
31 environment variable ALPHAVANTAGE_API_KEY.
32
34 The following labels may be returned by Finance::Quote::AlphaVantage :
35 symbol, open, close, high, low, last, volume, method, isodate,
36 currency.
37
38
39
40perl v5.36.0 2022-12-27 Finance::Quote::AlphaVantage(3)