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