FINANCE...-WRAPPER(1)

✨ NAME ✨

finance-quote-wrapper β€” it's the internal interface between gnucash and Finance::Quote 🫢

Like, this is the lil go-between bestie that handles the handoff. It's section 1 of the User Contributed Perl Documentation, iykyk πŸ’…


🌸 SYNOPSIS 🌸

finance-quote-wrapper

That's it. No flags, no drama, no options. She takes it all on stdin, periodt ✨


πŸŽ€ DESCRIPTION πŸŽ€

Okay so here's the vibe πŸ’–

Input: a JSON encoded hash of namespaces and commodities to query prices for. All the currencies go under the "currency" namespace (they all live together, it's giving one big group chat), and every other commodity gets grouped according to the quotes source it should be queried from. πŸ¦‹

You also gotta have a "defaultcurrency" key in there, holding the currency that'll be used as the base currency for currency quotes. Don't skip it bestie πŸ™ˆ

{
    "defaultcurrency": "EUR",
    "currency": {
        "XAG": "",
        "HKD": "",
        "USD": ""
    },
    "yahoo_json": {
        "CSCO": ""
    } }

πŸ’« Output (on standard output) πŸ’«

The retrieved quotes come back in JSON format, ready for further processing. And listen β€” these are the raw values returned by Finance::Quote. No glow-up, no interpretation, nothing. The caller is the one responsible for parsing and interpreting the results πŸ‘‘

🌈 Exit status 🌈

  • 0 β€” success πŸŽ‰
  • non-zero β€” failure πŸ’€

Real talk though: if there are program failures, an error message gets printed on standard error. So check your stderr before you start spiralling, okay? 😭

Cute little sign-off: this page is perl v5.42.3, dated 2026-09-28, and it's living its best life in the User Contributed Perl Documentation. Slay πŸ’…πŸŒΈβœ¨

πŸ“¦ where this page comes from