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 does
  • date β€” the day 🌸
  • time β€” the time, clock behaviour ⏰
  • price β€” the price, no cap
  • nav β€” net asset value, the fancy one 🧚
  • source β€” where it came from (spoiler: morningstar.ch) 🌍
  • method β€” how it got fetched
  • iso_date β€” same date energy, but ISO-formatted, international icon 🌈
  • net β€” net, as in the net one
  • p_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 (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