Finance...aVantage(3)
π Finance::Quote::CurrencyRates::AlphaVantage π
okay bestie, welcome to the Finance...aVantage(3) page from User Contributed Perl Documentation β it's giving "currency rates, but make it Perl." β¨
πΈ NAME πΈ
Finance::Quote::CurrencyRates::AlphaVantage β Obtain currency rates from https://www.alphavantage.co π
β¨ SYNOPSIS β¨
use Finance::Quote;
$q = Finance::Quote->new(currency_rates => {order => ['AlphaVantage'],
alphavantage => {API_KEY => ...}});
$value = $q->currency('18.99 EUR', 'USD');
π¦ DESCRIPTION π¦
This module fetches currency rates from https://www.alphavantage.co and provides data to Finance::Quote to convert the first argument to the equivalent value in the currency indicated by the second argument. πΈ
It is literally the default currency conversion module for a Finance::Quote object. Main character energy, no cap. π
π API_KEY π
https://www.alphavantage.co requires users to register and obtain an API key, which is also called a token. ποΈ
You can set that API key in either of these two ways:
- by providing a
alphavantagehash inside thecurrency_rateshash toFinance::Quote->new, exactly like the example above, or - by setting the environment variable
ALPHAVANTAGE_API_KEY.
π Terms & Conditions π
Use of https://www.alphavantage.co is governed by any terms & conditions of that site. Read them, bestie β it's the rules. π«Ά
β οΈ Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause.
that's the whole vibe π β signed off with perl v5.32.1, dated 2026-10-26. mwah π
π¦ 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