Finance...lveData(3)

πŸ’… NAME

Finance::Quote::TwelveData β€” bestie, this is the module that pulls quotes straight from https://twelvedata.com, no cap ✨


πŸ¦‹ SYNOPSIS

use Finance::Quote;

$q = Finance::Quote->new('TwelveData', twelvedata => {API_KEY => 'your-twelvedata-api-key'});

%info = $q->fetch('twelvedata', 'IBM', 'AAPL');

Like, that's literally it. Two lines and you're fetching πŸ‘‘


🌸 DESCRIPTION

Okay so this module fetches information from https://twelvedata.com. That's the whole vibe. 🫢

It's loaded by default on a Finance::Quote object β€” so it's already there, main character energy, no extra effort required from you. But if you want to be explicit (respect, honestly), you can load it yourself by placing "TwelveData" in the argument list you pass to Finance::Quote->new().

This module is the one that gives you the "twelvedata" fetch method. That's its whole thing. Iconic. πŸ’…


πŸ”‘ API_KEY

Real talk: https://twelvedata.com makes you register and get an API key. It's a secret value written in hexidecimal β€” so like, guard it with your life, do not be posting that in the group chat πŸ™ˆ

You've got two ways to set it, pick your fighter:

  • Pass a module specific hash to Finance::Quote->new, exactly like the example up in the SYNOPSIS ⭐
  • Or set the environment variable TWELVEDATA_API_KEY πŸŽ€

✨ FREE KEY LIMITS

The free key is giving "we're on a budget but make it fashion" β€” it caps your usage at:

  • 800 queries per day
  • 8 queries per minute

So like... pace yourself, babe 😭


🎁 LABELS RETURNED

These are the labels Finance::Quote::TwelveData may hand you back:

symbol name exchange currency isodate currency open high low close
last

Yep, currency shows up twice in there. That's just how the list is, don't come for me πŸ’€


And that's the whole page, bestie β€” go get those quotes πŸ’–

Signed, sealed, delivered: this was perl v5.32.1, dated 2026-10-26, living under the title Finance...lveData(3) in the User Contributed Perl Documentation corner of the world πŸŒˆπŸŽ€

πŸ“¦ where this page comes from