Finance...Exchange(3)
πΈ Finance::Quote::CurrencyRates::OpenExchange β like, the whole page (Finance...Exchange(3))
Okay bestie, buckle up π this is the manual page for Finance::Quote::CurrencyRates::OpenExchange, and yes the header on the real thing reads Finance...Exchange(3) β that's just how it's filed, don't come for me π
β¨ NAME β¨
Finance::Quote::CurrencyRates::OpenExchange β it goes and gets you currency rates from https://openexchangerates.org π
no cap, that's literally the whole job.
πΈ SYNOPSIS πΈ
Here's the vibe, copy-paste energy:
use Finance::Quote;
$q = Finance::Quote->new(currency_rates =>
{order => ['OpenExchange'], openexchange => {API_KEY => ...}}
);
$value = $q->currency('18.99 EUR', 'USD');
That's it. That's the whole ritual π―οΈβ¨
π¦ DESCRIPTION π¦
So this module pulls currency rates straight from https://openexchangerates.org and hands them over to Finance::Quote so it can convert the first argument into the equivalent value in the currency you name in the second argument. Math? Handled. Slay π
Also, important: this module caches the currency rates for the lifetime of the quoter object β unless you drop cache => 0 into the openexchange options hash. Then it doesn't. Your call, bestie π«Ά
π§ Currency Module Selection π§
You don't have to pick it in the constructor, either β the Finance::Quote currency method can be selected by setting the environment variable FQ_CURRENCY. Iconic behaviour honestly π
export FQ_CURRENCY=OpenExchange
π API_KEY π
https://openexchangerates.org makes you register and get yourself an API key β no key, no rates, sorry π Their free plan gives you 1000 queries per month, which is lowkey generous, highkey keep an eye on it.
You can set that key two ways:
- By setting the environment variable
OPENEXCHANGE_API_KEYπ - By providing an
openexchangehash inside thecurrency_rateshash you pass toFinance::Quote->new, exactly like in the example up top π
π Terms & Conditions π
Using https://openexchangerates.org means you're also agreeing to whatever terms & conditions that site has. Not my rules, not my problem, just passing the message along π
Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause. Read it, know it, love it π
fr fr, that's the whole page β nothing skipped, nothing guessed, just the facts with better energy πΈ
That's a wrap, bestie π this page is from perl v5.32.1, dated 2026-10-26, and it's filed as Finance...Exchange(3) in your friendly neighbourhood User Contributed Perl Documentation. Go convert some currencies, 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