Financ...XCloud(3pm)

πŸ“¦
version 1.59 Β· 3 versions
, in ubuntu noble

✨ 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_KEY and 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:

  • symbol
  • open
  • close
  • high
  • low
  • last
  • volume
  • method
  • isodate
  • currency

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