yahoo-finance-python

Retrieve stock quotes, historical prices, and fundamentals from Yahoo Finance using yfinance.

2|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/Jansen611/Agent-Skills --skill yahoo-finance-python
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yahoo-finance-python
Source: https://github.com/Jansen611/Agent-Skills/tree/main/skills/yahoo-finance-python
Command: npx skills add https://github.com/Jansen611/Agent-Skills --skill yahoo-finance-python

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

It solves the problem of manually searching and copying stock quotes, historical prices, and company fundamentals from Yahoo Finance into your workflow.

Core Features & Use Cases

  • Market data retrieval: Fetch real-time-ish quote fields and historical OHLCV data for one or multiple tickers for analysis.
  • Fundamentals & corporate actions: Pull financial statements, dividends, splits, earnings dates, and related fundamentals for research and reporting.
  • Data exploration tasks: Use sector/industry and ticker search capabilities to find the right symbols before downloading data.

Quick Start

Run the skill to download and print a quick snapshot of MSFT and AAPL using your local ~/.venv Python environment.

Frequently Asked Questions about yahoo-finance-python

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I download historical stock prices and fundamentals from Yahoo Finance?

You can download historical stock prices and company fundamentals from Yahoo Finance by running Python scripts that utilize the yfinance library to fetch OHLCV data, financial statements, and real-time quotes.

Can I pull financial statements and dividends for multiple tickers at once?

Yes, you can pull financial statements, dividends, and splits for multiple tickers at once by using the multi-ticker download capabilities of the yfinance Python library.

What's the best way to get Yahoo Finance stock quotes into a Python workflow?

The best way to get Yahoo Finance stock quotes into a Python workflow is using the yfinance library within a local virtual environment to retrieve structured data directly for analysis.

Do I need yfinance installed in ~/.venv to fetch stock data?

Yes, you need the yfinance library installed in your local ~/.venv Python environment to execute the scripts that retrieve stock quotes and historical price series.

How does ticker search and sector lookup work for Yahoo Finance data?

Ticker search and sector lookup work by querying Yahoo Finance through the yfinance library to identify the correct stock symbols and retrieve their corresponding sector and industry classifications.

Are there limitations when using yfinance to scrape Yahoo Finance fundamentals?

Limitations of using yfinance include relying on Yahoo Finance's unofficial data structure, which may change without notice and cause inconsistent structured outputs for fundamentals.