yfinance

Retrieve global stock, ETF, and index market data via Yahoo Finance.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/thanhtai040805/AI_Invest --skill yfinance-thanhtai040805
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/thanhtai040805/AI_Invest/tree/main/ai-engine/app/domain/services/quant/skills_data/yfinance
Command: npx skills add https://github.com/thanhtai040805/AI_Invest --skill yfinance-thanhtai040805

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires yfinance, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of retrieving global market data for stocks, ETFs, and indices, eliminating the need for manual data collection and reducing the time spent on financial analysis.

Core Features & Use Cases

  • Global Market Data: Retrieve OHLCV, financials, insider transactions, and institutional holdings for a wide range of financial instruments.
  • Free Access: No API key required, utilizing Yahoo Finance's public data.
  • Use Case: Ideal for traders, investors, and financial analysts looking to automate data retrieval for backtesting, portfolio management, or research.

Quick Start

Retrieve historical data for Apple Inc. (AAPL) from January 2025 to January 2026 using the yfinance skill.

Frequently Asked Questions about yfinance

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

FAQPage Schema
How do I retrieve global market data for stocks and ETFs without an API key?

You can retrieve global market data for stocks and ETFs without an API key by using the yfinance library. It accesses Yahoo Finance public data to automate OHLCV and financials retrieval for backtesting.

Can I use Yahoo Finance data for backtesting and portfolio analysis?

Yes, Yahoo Finance data is ideal for backtesting and portfolio analysis. The yfinance library automates the retrieval of historical OHLCV data and institutional holdings required for these financial research tasks.

What's the best way to automate financial data retrieval for research?

Automating financial data retrieval for research is best handled through Python scripts using the yfinance library. This approach streamlines global market data collection, eliminating manual downloads for analyst workflows.

Do I need Python to access Yahoo Finance market data for indices?

Yes, you need Python and the yfinance library installed to access Yahoo Finance market data for indices. This environment executes the scripts required to pull global financial data effortlessly.

What specific financial data can I pull for stocks using Yahoo Finance?

Using Yahoo Finance, you can pull OHLCV historical prices, financials, insider transactions, and institutional holdings for stocks. This data supports comprehensive financial analysis and portfolio management.