Financ...XCloud(3pm)
β¨ NAME β¨
Finance::Quote::IEXClound β bestie, this is the lil module that goes and gets quotes from https://iexcloud.io π
(it's IEXClound with an L, no we are not fixing it, it's iconic, we respect the typo π«Ά)
πΈ SYNOPSIS πΈ
okay so here's the vibe, literally copy-paste energy:
use Finance::Quote;
$q = Finance::Quote->new('IEXCloud', iexcloud => {API_KEY => 'your-iexcloud-api-key'});
%info = Finance::Quote->fetch("IBM", "AAPL");
that's it. that's the whole thing. slay π
π¦ DESCRIPTION π¦
so basically this module fetches info from https://iexcloud.io. that's the whole job. that's what it does. iconic behavior honestly β¨
here's the tea tho: this module is loaded by default on a Finance::Quote object. like, it just shows up. no invitation needed, it's giving main character energy π
but ALSO β if you're the type who likes to be explicit (valid, we love a planner), you can load it yourself by dropping "IEXCloud" into the argument list of Finance::Quote->new(). either way bestie, you're covered π«Ά
and this module provides the "iexcloud" fetch method. that's the one you call. periodt. π₯
π API_KEY π
okay so https://iexcloud.io is not just gonna hand you data for free like a random. nope. you gotta register and get yourself an API key β which, fun fact, also gets called a token. same thing, two names, very Gemini of it π
that token might have a prefix string on the front, like 'pk_', and then after that it's just a big ol' sequence of random digits. very mysterious. very β¨enigmaticβ¨.
now, how do you actually set this key? two options, choose your fighter:
- hand Finance::Quote a module-specific hash when you call
Finance::Quote->newβ literally exactly like the example up in the SYNOPSIS, go look, it's right there π - or set the environment variable
IEXCLOUD_API_KEYand let the vibes carry you π
either one works. pick the one that sparks joy π
π·οΈ LABELS RETURNED π·οΈ
here's everything Finance::Quote::IEXClound might hand back to you, no cap:
symbolopenclosehighlowlastvolumemethodisodatecurrency
look at that lineup. ate and left no crumbs π
and that's the whole page bestie!! this one came from the User Contributed Perl Documentation corner of the world, running on perl v5.36.0, dated 2024-01-01 β like, she's been around, she's seen things, and she's still serving π bye mwah πβ¨
π¦ where this page comes from
- ubuntu noble: libfinance-quote-perl 1.59-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms