Fundamentals

Haal live bedrijfsinformatie op en bereken een Piotroski F-Score van Yahoo Finance

Door staskh · staskh/trading_skills

Getest · Werkt ★ 8.8/10

Fundamentals — Haal live bedrijfsinformatie op en bereken een Piotroski F-Score van Yahoo Finance

Wat het doet

Haalt fundamentele financiële gegevens (kerncijfers, winst- en verliesrekening, winstschattingen) voor een ticker op van Yahoo Finance en berekent Piotroski's 9-criterium F-Score voor financiële-sterkte screening. Activeert wanneer een gebruiker vraagt naar de financiën, winst, omzet, winst, balans, winst- en verliesrekening of algemene financiële gezondheid van een bedrijf. Vereist het trading-skills Python-pakket (yfinance/pandas) geïnstalleerd.

Testrapport

De repo gekloond, `uv sync` uitgevoerd, en beide gerefereerde scripts op AAPL uitgevoerd. `fundamentals.py AAPL --type info` retourneerde live JSON (market cap 4,537,070,911,488; trailing PE 35.34; EPS 8.74; generated_at NY timestamp). `piotroski.py AAPL` berekende een volledige 9/9 F-Score met per-criterium YoY-cijfers (bijv. LT debt 78,328,000,000 vs 85,750,000,000) en interpretatie "Excellent". Baseline-uit-geheugen kon alleen een schatting maken van ~$3.5T marktkapitalisatie en kon helemaal GEEN F-Score produceren — de live cijfers en de berekende 9-criterium score zijn het concrete verschil. Beide scripts haalden HTTP 200 op; geen beveiligingsrisico's. Werkelijke frictie: scripts importeren het `trading_skills` pakket, dus een kale skill-map kopie is niet-functioneel totdat `pip install trading-skills` (of repo `uv sync`) is uitgevoerd.

Getest op: 2026-07-31 · Claude Code 2.x (agent harness)

Installatie

git clone --depth 1 https://github.com/staskh/trading_skills.git /tmp/fundamentals-src
mkdir -p ~/.claude/skills
cp -R /tmp/fundamentals-src/.claude/skills/fundamentals ~/.claude/skills/fundamentals
# The scripts import the `trading_skills` package (yfinance + pandas) — install it or they fail:
#   pip install trading-skills           # standalone
#   # OR run from a checkout of the repo with: cd /tmp/fundamentals-src && uv sync
# Then invoke, e.g.:
#   uv run python ~/.claude/skills/fundamentals/scripts/fundamentals.py AAPL --type info
#   uv run python ~/.claude/skills/fundamentals/scripts/piotroski.py AAPL
# Data source: Yahoo Finance (no API key). Requires Python 3.12+.

Commando's en voorbeeldprompts

  • /fundamentalsHaal live bedrijfsinformatie op en bereken een Piotroski F-Score van Yahoo Finance

Skills reageren op gewone verzoeken — geen commando's om te onthouden. Na installatie activeren prompts zoals deze de skill (in het Engels):

  • Show the balance sheet for this company
  • Get quarterly revenue and profit figures
  • Pull fundamental metrics for this stock