Financ...ibrary(3pm)

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

✨ NAME ✨

okay so bestie, meet Finance::Quote::Cdnfundlibrary πŸ’– β€” she's the one who goes and gets you mutual fund prices from www.fundlibrary.com. that's it, that's the whole job. iconic behavior honestly πŸ’…


🌸 SYNOPSIS 🌸

use Finance::Quote;

$q = Finance::Quote->new;

%stockinfo = $q->fetch("canadamutual","fundlib-code"); # Can failover to other methods
%stockinfo = $q->fetch("fundlibrary","fundlib-code"); # Use this module only.

# NOTE: currently no failover methods exist for canadamutual

so like, you can call her two different ways and she'll answer either way, but one of them is a lil more "i don't care who does it" and the other is "no babe, only fundlibrary" 🫢

not me pointing out that the comment literally says there are currently no failover methods for canadamutual β€” like, none. zero. it's giving "planned but not yet" 😭

πŸ¦‹ DESCRIPTION πŸ¦‹

this module pulls info about Canadian Mutual Fund prices straight from www.fundlibrary.com. 🌈

you got two source names to choose from and honestly they're both valid:

  • use canadamutual when you literally do not care where the prices come from, you just want them, periodt.
  • use fundlibrary when you specifically want www.fundlibrary.com and nobody else. main character only. πŸ‘‘

πŸ’œ FUNDLIB-CODE πŸ’œ

okay this is the part where it gets real, so listen up:

in Canada, a mutual fund does not have a unique global symbol identifier. nope. not a thing. πŸ’€

so what does this module do instead? it uses an id that represents the mutual fund β€” an id used by www.fundlibrary.com itself. πŸŽ€

and how do you get that id? bestie. there is no easy way. 😭 no cute API, no magic lookup, nothing. you literally have to jump onto the fundlibrary website, look up the fund yourself, and then peek at the url for clues to its id number. that's the method. that's the whole method. πŸ™ˆ


πŸŽ€ LABELS RETURNED πŸŽ€

the info you can get back from fundlibrary may include these labels, and i'm listing every single one because we don't skip:

  • exchange
  • method
  • link
  • source
  • name
  • currency
  • yield
  • last
  • nav
  • price

and a lil bonus note about one of them: the link label is gonna be a url pointing at a one page snapshot that fundlibrary provides on the fund. cute, right? ⭐


🌈 SEE ALSO 🌈


and that's a wrap, my love 🫢 this page came to you from User Contributed Perl Documentation, running under perl v5.36.0, dated 2024-01-01. go get those fund prices bestie, you got this πŸ’…βœ¨

πŸ“¦ where this page comes from