yfinance

Fetch global market data from Yahoo Finance via a Python API.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/prinzeval/Vibe-Trading --skill yfinance-prinzeval
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/prinzeval/Vibe-Trading/tree/main/VALENDATA/agent/src/skills/yfinance
Command: npx skills add https://github.com/prinzeval/Vibe-Trading --skill yfinance-prinzeval

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

yfinance provides a simple Python wrapper to fetch global market data (OHLCV, financials, insider transactions, and institutional holdings) from Yahoo Finance without API keys, enabling researchers and traders to access public market data quickly.

Core Features & Use Cases

  • Retrieve historical OHLCV data for US stocks, HK stocks, ETFs, and indices.
  • Access company fundamentals, insider transactions, and institutional holders for comprehensive research.
  • Backtest-ready data loading via a built-in loader and a consistent ticker format to simplify cross-market analysis.

Quick Start

Install the yfinance package and use yf.download('AAPL') to fetch historical OHLCV data.

Frequently Asked Questions about yfinance

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

FAQPage Schema
How do I fetch historical OHLCV market data without an API key?

You can fetch historical OHLCV market data without an API key by installing the yfinance package and calling yf.download with a ticker symbol like 'AAPL' to retrieve global market data instantly.

Can I retrieve financials and institutional holdings for US and HK stocks?

Yes, you can retrieve company financials, insider transactions, and institutional holdings for US stocks, HK stocks, ETFs, and indices using the simple yfinance Python API wrapper.

What's the best way to load backtest-ready data for cross-market analysis?

The best way to load backtest-ready data is using the built-in backtest loader, which provides a unified ticker format to simplify cross-market analysis across global stocks and indices.

Does yfinance work with ETFs and global market indices?

Yes, yfinance works with ETFs and global market indices, allowing you to fetch historical data and metadata for comprehensive research workflows without requiring any API keys.

Why use a Python wrapper for Yahoo Finance data in research workflows?

A Python wrapper for Yahoo Finance data enables researchers and traders to quickly access public market data including fundamentals and insider transactions, streamlining backtesting and data analytics workflows.