Finance...Vantage(3)
π NAME π
okay so bestie, this is the Finance...Vantage(3) page β a User Contributed Perl Documentation moment β and the module is Finance::Quote::AlphaVantage. It obtains quotes from https://alphavantage.co. slay.
β¨ SYNOPSIS β¨
use Finance::Quote;
$q = Finance::Quote->new('AlphaVantage', alphavantage => {API_KEY => 'your-alphavantage-api-key'});
%info = $q->fetch('alphavantage', 'IBM', 'AAPL');
π¦ DESCRIPTION π¦
This module fetches information from https://www.alphavantage.co. literally its whole job.
This module is loaded by default on a Finance::Quote object. Itβs also possible to load it explicitly by placing "AlphaVantage" in the argument list to Finance::Quote->new().
This module provides the "alphavantage" fetch method.
π API_KEY π
https://www.alphavantage.co requires users to register and obtain an API key, which is also called a token. The token is a sequence of random characters.
The API key may be set by either providing a module specific hash to Finance::Quote->new as in the above example, or by setting the environment variable ALPHAVANTAGE_API_KEY. pick your iconique path π
π LABELS RETURNED π
The following labels may be returned by Finance::Quote::AlphaVantage:
symbolopenclosehighlowlastvolumemethodisodatecurrency
π CAVEATs π
Since the JSON returned by the GLOBAL_QUOTE API does not specify the currency of the price data, there is no way to determine the correct currency without an additional call to the SYMBOL_SEARCH API. To avoid even slower throttling, this module expects the user to know which securities from certain countries may be traded in the non-ISO4217 currency.
An example are London Stock Exchange traded GBP.L (Global Petroleum Limited) and GBPG.L (Goldman Sachs Access UK Gilts 1-10 Years UCITS ETF CLASS GBP (Dist)). GBP.L is traded in GBX, which is also known as GBp (Great Britain Pence), and GBPG.L is traded in the iso-4217 currency GBP (Great Britain Pounds). The user will need to add .X to symbols to return GBX priced securities as GBP. For the example above the user would use the symbol GBP.L.X in the call to the alphavantage method for the prices to be output as GBP.
no cap: the currency situation here is giving βextra credit assignment,β but the rules are the rules π«
okay thatβs the whole page, bestie π«Ά β this is perl v5.32.1, dated 2026-10-26, and itβs the Finance...Vantage(3) manual page from User Contributed Perl Documentation. bye π
β¨
π¦ where this page comes from
- epel 9: perl-Finance-Quote 1.7200-1.el9 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms