Financ...ibrary(3pm)
β¨ 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
canadamutualwhen you literally do not care where the prices come from, you just want them, periodt. - use
fundlibrarywhen 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:
exchangemethodlinksourcenamecurrencyyieldlastnavprice
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 π
- Fundlibrary website β http://www.fundlibrary.com/ π¦
Finance::Quoteπ
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
- 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