finyahoo — company profile
Take a ticker and print one symbol's company fundamentals snapshot -- sector, industry,
market cap, shares, valuation multiples (PE, PB, EPS), growth, margins, ROE, 52-week
range, and beta. The fetching and parsing live in the finyahoo package (on PyPI); this
skill is a thin wrapper that calls its CLI and relays the result. An unknown ticker or
a rate block comes back as a one-line error -- relay it as-is. For the live price view
of one symbol, use the quote skill.
Prerequisite
This plugin calls the finyahoo CLI, so the package must be installed first:
pipx install finyahoo # or: pip install finyahoo
That puts the finyahoo command on PATH. No API key or login is needed.
Running
finyahoo profile "<SYMBOL>" [--json]
- Default output is the populated fields as aligned
name value(absent fields are skipped -- an index like^GSPCcarries fewer). --jsonemits the full snapshot including thenullfields.
This is a fundamentals snapshot as of now, not history; for dated prices use the
history skill, and for one symbol's live price snapshot use quote. Every numeric
field is optional -- a missing one is null, never 0.
Procedure
- Get the symbol. Find a Yahoo ticker (US
AAPL; Korean005930.KS; index^GSPC). If there is none, ask. Handle several one at a time. - Run.
Addfinyahoo profile "AAPL"--jsonwhen the user wants every field (including the empty ones) or machine- readable data. - Relay the result. Show the CLI's stdout as-is; you may highlight the fields the user asked about (e.g. just market cap and PE).
- Error handling. When the CLI exits non-zero, relay the one-line
finyahoo: <message>from stderr as-is:command not found: finyahoo-> not installed; point the user atpipx install finyahoo.- a
...quoteSummary/<sym> returned 404message -> a delisted or unknown ticker. - a 429 / refusing-this-client message -> Yahoo is rate-limiting; wait and retry.
What this skill does not do
- It does not re-implement fetching or parsing (the package does); it always calls the CLI.
- It is a current snapshot only -- for dated financial history use the library's
YahooClient.fetch_timeseries(...), or thehistoryskill for prices.