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 to Finance::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