New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Command-line access to Yahoo Finance quotes, fundamentals, earnings, options, and analyst ratings with no API key.

skills.sh installs
4.7K
GitHub stars
50
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers price, quote, fundamentals, earnings, profile, dividends, analyst ratings, options chains, price history, comparisons, and symbol search through a single yf command
  • Includes history ranges from 1d through max and side-by-side compare output for tickers across US, Indian NSE and BSE, crypto, forex, and ETF symbols
  • Runs as a PEP 723 inline script with uv, which auto-installs yfinance and rich dependencies on first run and caches them
  • Designed for quick market lookups from a terminal, with Python 3.11+ and uv as the only prerequisites

Install

$ npx -y skills add gracefullight/stock-checker --skill yahoo-finance -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Yahoo Finance CLI

A Python CLI for fetching comprehensive stock data from Yahoo Finance using yfinance.

Requirements

  • Python 3.11+
  • uv (for inline script dependencies)

Installing uv

The script requires uv - an extremely fast Python package manager. Check if it's installed:

uv --version

If not installed, install it using one of these methods:

macOS / Linux

curl -LsSf https://astral.sh/uv/install.sh | sh

macOS (Homebrew)

brew install uv

Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

pip (any platform)

pip install uv

After installation, restart your terminal or run:

source ~/.bashrc  # or ~/.zshrc on macOS

Installation

The yf script uses PEP 723 inline script metadata - dependencies are auto-installed on first run.

# Make executable
chmod +x /path/to/skills/yahoo-finance/yf

# Optionally symlink to PATH for global access
ln -sf /path/to/skills/yahoo-finance/yf /usr/local/bin/yf

First run will install dependencies (yfinance, rich) to uv's cache. Subsequent runs are instant.

Commands

Details

Repository
github.com/gracefullight/stock-checker
Categories
Finance & Trading, CLI & Terminal

More from gracefullight/stock-checker

All 3

Similar to Yahoo Finance

More Finance & Trading