Finance...elveData(3)
π NAME π
Finance::Quote::CurrencyRates::TwelveData β obtain currency rates from https://api.twelvedata.com/exchange_rate πΈβ¨
Yep bestie, this is the (3) manual page β User Contributed Perl Documentation, and sheβs serving currency-rate utility realness. Periodt.
β¨ SYNOPSIS β¨
Okay so hereβs the group-chat recipe π«Ά:
use Finance::Quote;
$q = Finance::Quote->new(currency_rates =>
{order => ['TwelveData'],
twelvedata => {API_KEY => ...}
});
$value = $q->currency('18.99 EUR', 'USD');
π DESCRIPTION π
This module fetches currency rates from https://api.twelvedata.com/exchange_rate and provides data to Finance::Quote to convert the first argument to the equivalent value in the currency indicated by the second argument. Lowkey iconic behavior π
.
Important vibe check: this module is not the default currency conversion module for a Finance::Quote object. The way that you can utilize it is by setting the environment variable FQ_CURRENCY=TwelveData β¨.
π API_KEY π
https://api.twelvedata.com/exchange_rate requires users to register and obtain an API key π.
You can set the API key in either of these cute little ways:
- Set the Environment variable
"TWELVEDATA_API_KEY". - Provide a
'twelvedata'hash inside the'currency_rates'hash toFinance::Quote->new, exactly like the example above.
π Terms & Conditions π
Use of https://api.twelvedata.com/exchange_rate 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. So yeah, no cap β thatβs the legal tea β.
Thatβs the whole page, bestie! Signing off with perl v5.32.1 energy, dated 2026-10-26 π«Άπ
π¦ 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