Financ...gstarCH(3pm)
π NAME
Finance::Quote::MorningstarCH β the glow-up module that pulls CH Unit Trust quotes straight from morningstar.ch. It's Finance::Quote but make it Swiss. π¨πβ¨
So real quick, lowkey housekeeping: this page lives in the perl manual, section 3pm (that's "Perl module docs," iykyk) β that's the tiny header thing at the top of every manpage. Anyway. The actual content? Slay. Let's go. π
β¨ SYNOPSIS β¨
$q = Finance::Quote->new;
%info = $q->fetch("morningstarch","<isin> ..."); # Only query morningstar.ch using ISINs
Periodt. That's it. You make a Finance::Quote object, you hand it some ISINs, you get info back. The comment is doing the heavy lifting there and honestly it ate. π₯
π¦ DESCRIPTION π¦
Okay so here's the tea: this module fetches information from the MorningStar Funds service, over at https://morningstar.com/ch/. That's the vibe. π
Funds are identified by their ISIN code β like that's their whole personality, their government name, their main character identifier. π
And here's the cute part: this module is loaded by default on a Finance::Quote object. No extra steps, she just shows up ready to work. π«Ά But if you're the type who needs to be explicit (respect), it's also possible to load it explicitly by placing "morningstarch" in the argument list to Finance::Quote->new().
Heads up bestie π«£ β information obtained by this module may be covered by Morningstar terms and conditions. See https://morningstar.ch/ for details. Not me being the responsible friend, but likeβ¦ read them. π
π Stocks And Indices
This module provides the "morningstarch" fetch method for fetching CH Unit Trusts and OEICs prices and other information from morningstar.ch. That's the whole method. She's a specialist, not a generalist. Iconic behaviour honestly. π
π LABELS RETURNED π
The following labels may be returned by Finance::Quote::MorningstarCH:
name, currency, last, date, time, price, nav, source, method,
iso_date, net, p_change, success, errormsg.
That's fourteen little data girlies right there, all showing up to the group chat with their own thing going on. β¨ Let's appreciate them individually for a sec:
nameβ what the fund is actually called π·οΈcurrencyβ the money vibe πΈlastβ last value, as one doesdateβ the day πΈtimeβ the time, clock behaviour β°priceβ the price, no capnavβ net asset value, the fancy one π§sourceβ where it came from (spoiler: morningstar.ch) πmethodβ how it got fetchediso_dateβ same date energy, but ISO-formatted, international icon πnetβ net, as in the net onep_changeβ percent change, the drama metric ππsuccessβ did it work? the vibe check βerrormsgβ and if it didn't, here's the explanation π
π SEE ALSO π
Morning Star websites, over at https://morningstar.ch β go touch grass, but like, financial grass. π±
π AUTHOR π
Manuel Friedli, <manuel@fritteli.ch> β based heavily on the work of Martin Sadler, <martinsadler@users.sourceforge.net>. Many thanks! πβ¨ Like genuinely, standing ovation, they carried. π
π COPYRIGHT AND LICENSE π
Copyright (C) 2019, 2025 by Manuel Friedli
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
Translation: she's free, she's flexible, she's giving open source generosity. Take her, remix her, just keep the same terms. π«Ά
Okay that's the whole page, bestie β you're officially caught up. π Go fetch some Swiss fund quotes and absolutely slay. π β¨
This page was brought to you by perl version 5.40.1, dated 2026-06-26 β from the perl manual, section 3pm, with love. Byeee! π¦π
π¦ where this page comes from
- ubuntu stonking: libfinance-quote-perl 1.70-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms