Finance::Quote::CurrencyRates::ECB - Obtain currency rates from https://www.ecb.europa.eu
| Use Case | Command | Description |
|---|---|---|
| 💱 Currency conversion | $q->currency('18.99 EUR', 'CAD') |
Convert 18.99 EUR to CAD using ECB rates. |
| ⚙️ Initialize with ECB | Finance::Quote->new(currency_rates => {order => ['ECB']}) |
Create a new Finance::Quote object that uses ECB as the primary currency rate source. |
use Finance::Quote;
$q = Finance::Quote->new(currency_rates => {order => ['ECB']});
$value = $q->currency('18.99 EUR', 'CAD');
This module fetches currency rates from https://www.ecb.europa.eu and provides data to Finance::Quote to convert the first argument to the equivalent value in the currency indicated by the second argument.
The European Central Bank provides a small list of currencies, quoted against the Euro. This module caches the table of rates for the lifetime of the Finance::Quote object after the first currency conversion.
Use of https://www.ecb.europa.eu is governed by any terms & conditions of that site.
Finance::Quote is released under the GNU General Public License, version 2, which explicitly carries a "No Warranty" clause.
perl v5.32.1 | 2021-09-01 | Finance::Quote::CurrencyRates::ECB(3pm)
```Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-20 23:54 @2600:1f28:365:80b0:d8a5:c3c6:bf94:28c0
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format