Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
0juano avatar

Yahoo Finance

  • 489 installs
  • Updated July 2, 2026
  • 0juano/agent-skills

yahoo-finance is a Python CLI skill that pulls real-time stock prices, credit metrics, macro data, and dividend information into agents or scripts via yfinance commands.

About

yahoo-finance is a uv-run Python CLI skill from 0juano/agent-skills tailored for fixed income and emerging markets investors. The script requires Python 3.10+ and depends on yfinance 0.2.36+ and rich 13.7+, exposing commands for price, quote, compare, credit, macro, fx, flows, and history with optional JSON output. Developers reach for yahoo-finance when agents or automation need live ticker quotes, credit leverage metrics, macro dashboards, or ETF holdings without building a custom market data client. Each command returns structured terminal tables or JSON suitable for downstream parsing in financial tooling pipelines.

  • 15 specialized commands covering price, quote, credit analysis, macro dashboard, fundamentals, options, dividends and an
  • Built for fixed-income and emerging-market investors with dedicated credit, leverage, debt-maturity and LatAm FX command
  • Rich terminal tables plus optional --json output for agent consumption
  • Zero-config yfinance wrapper that returns clean, investor-focused data layouts

Yahoo Finance by the numbers

  • 489 all-time installs (skills.sh)
  • Ranked #210 of 1,106 Finance & Trading skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
npx skills add https://github.com/0juano/agent-skills --skill yahoo-finance

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs489
Security audit1 / 3 scanners passed
Last updatedJuly 2, 2026
Repository0juano/agent-skills

How do you pull stock and macro data into scripts?

Pull real-time stock prices, credit metrics, macro data, and dividend information directly into agents or scripts.

Who is it for?

Developers building financial agents or CLI tooling who need Yahoo Finance data via yfinance without custom API wrappers.

Skip if: Teams requiring authenticated brokerage trading APIs, proprietary market data feeds, or non-Yahoo exchange coverage.

When should I use this skill?

A task needs live stock prices, credit metrics, macro indicators, FX rates, or ETF holdings from Yahoo Finance.

What you get

Terminal quote tables, credit analysis output, macro dashboards, FX rates, and JSON market data payloads.

  • JSON market data
  • terminal quote tables
  • credit analysis reports

By the numbers

  • Exposes 8 CLI commands for market data
  • Requires Python 3.10+ with yfinance 0.2.36+

Files

SKILL.mdMarkdownGitHub ↗

Yahoo Finance CLI

Financial data terminal powered by Yahoo Finance. All commands via the yf script.

Setup

The script is at {baseDir}/scripts/yf. It uses uv run --script with inline PEP 723 metadata — dependencies install automatically on first run.

chmod +x {baseDir}/scripts/yf

Commands

CommandPurposeExample
yf price TICKERQuick price + change + volumeyf price YPF
yf quote TICKERDetailed quote (52w, PE, yield)yf quote AAPL
yf compare T1,T2,T3Side-by-side comparison tableyf compare YPF,PAM,GGAL
yf credit TICKERCredit analysis: leverage, coverage, debt maturityyf credit YPF
yf macroMorning macro dashboard (UST, DXY, VIX, oil, gold, BTC, ARS)yf macro
yf fx [BASE]LatAm FX rates (ARS, BRL, CLP, MXN, COP)yf fx USD
yf flows ETFETF top holdings + fund datayf flows EMB
yf history TICKER [PERIOD]Price history (1d/5d/1mo/3mo/6mo/1y/ytd/max)yf history YPF 3mo
yf fundamentals TICKERFull financials (IS, BS, CF)yf fundamentals YPF
yf news TICKERRecent news headlinesyf news YPF
yf search QUERYFind tickersyf search "argentina bond"

All commands support --json for machine-readable output.

When to Use Which Command

  • Morning check: yf macro → get UST yields, DXY, VIX, commodities, BTC, ARS in one shot
  • Quick look: yf price TICKER → fast price/change/volume
  • Deep dive equity: yf quoteyf fundamentalsyf history
  • Credit analysis: yf credit TICKER → leverage ratios, interest coverage, debt breakdown
  • EM/LatAm FX: yf fx → all major LatAm pairs vs USD
  • ETF research: yf flows ETF → top holdings, AUM, expense ratio
  • Comparison: yf compare → side-by-side for relative value

Error Handling

The script handles bad tickers, missing data, and rate limits gracefully with clear error messages. If Yahoo Finance rate-limits, wait a moment and retry.

Output

By default, output uses Rich tables for clean terminal display. Add --json to any command for structured JSON output suitable for piping or further processing.

Related skills

FAQ

What commands does yahoo-finance support?

yahoo-finance supports price, quote, compare, credit, macro, fx, flows, and history commands. Each command accepts ticker arguments and an optional --json flag for structured agent output.

What are the yahoo-finance dependencies?

yahoo-finance runs as a uv script requiring Python 3.10 or newer. The script depends on yfinance 0.2.36+ and rich 13.7+ for market data retrieval and terminal formatting.

Is Yahoo Finance safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Finance & Tradingfinancepricing

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.