Finance...es::ECB(3)
π NAME π
Finance::Quote::CurrencyRates::ECB β bestie, this is the little module that grabs currency rates straight from https://www.ecb.europa.eu π¦β¨ (and yes, it lives in the User Contributed Perl Documentation section of the manual, iykyk)
π¦ SYNOPSIS π¦
use Finance::Quote;
$q = Finance::Quote->new(currency_rates => {order => ['ECB']});
$value = $q->currency('18.99 EUR', 'CAD');
okay so that's literally the whole vibe: pull in Finance::Quote, spin up an object telling it to use ECB for currency rates, then ask it to convert '18.99 EUR' into 'CAD'. slay. π
πΈ DESCRIPTION πΈ
This module fetches currency rates from https://www.ecb.europa.eu and hands that data over to Finance::Quote, so it can convert the first argument into the equivalent value in the currency you name in the second argument. that's it, that's the job, and it does it gorgeously π«Ά
The European Central Bank gives you a small list of currencies, all quoted against the Euro β so like, don't expect every currency on earth, just the ECB's curated little lineup πͺπΊπΆ
Here's the cute part: this module caches that whole table of rates for the lifetime of the Finance::Quote object, and it does it right after the first currency conversion. so the first call does the fetch, and after that it's just chillin' with the numbers it already has β¨ (no cap, that's genuinely how it works)
π Terms & Conditions π
Use of https://www.ecb.europa.eu is governed by any terms & conditions of that site. read 'em, bestie, that's their house their rules π
Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause. so like, it's free and open and iconic, but if it breaks? no warranty, periodt π
ngl, that "No Warranty" clause is doing a lot of heavy lifting β it means exactly what it says, so don't come for anybody if things go sideways π
and that's the whole page, bestie!! π this lil doc is from perl v5.32.1, dated 2026-10-26 β mwah, go convert some currency, you absolute main character πππ
π¦ 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