yfinance

Download OHLCV, fundamentals, dividends, and institutional holdings from Yahoo Finance.

30.4k|4.9k|Updated Apr 1, 2026
One-click install
npx skills add https://github.com/HKUDS/Vibe-Trading --skill yfinance-hkuds
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/HKUDS/Vibe-Trading/tree/main/agent/src/skills/yfinance
Command: npx skills add https://github.com/HKUDS/Vibe-Trading --skill yfinance-hkuds

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides global Yahoo Finance market data so your trading research and backtests never rely on manual scraping or locked APIs.

Core Features & Use Cases

  • Granular OHLCV coverage: download minute, hourly, daily, and higher bars for US, HK, ETFs, indices, and FX pairs.
  • Fundamentals and corporate actions: access financial statements, dividends, splits, insider trades, and institutional holdings via yf.Ticker.
  • Ticker normalization: auto-convert project tickers like AAPL.US and 700.HK to yfinance formats and enable the cross-market auto loader.
  • Use case: configure a backtest with mixed US, HK, and ETF codes to let the loader fetch all required datasets without extra API keys.

Quick Start

Use the yfinance skill to fetch OHLCV history for AAPL.US between January 2025 and January 2026 using the unified ticker format.

Frequently Asked Questions about yfinance

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

FAQPage Schema
How do I fetch Yahoo Finance market data without an API key?

Fetch Yahoo Finance market data without an API key by using the yfinance Python package to download OHLCV history, fundamentals, dividends, and institutional holdings for global equities and ETFs directly.

Can I download historical OHLCV data for both US and HK stocks using yfinance?

Yes, you can download historical OHLCV data for both US and HK stocks. The skill normalizes tickers like AAPL.US and 700.HK to yfinance formats, enabling a cross-market auto loader for mixed US, HK, and ETF codes.

What's the best way to get free global stock data for backtesting?

The best way to get free global stock data for backtesting is using yfinance to retrieve granular minute, hourly, and daily bars, which replaces manual scraping or fragmented APIs without requiring API keys.

Does yfinance support fetching corporate actions and institutional holdings?

Yes, yfinance supports fetching corporate actions and institutional holdings. You can access financial statements, dividends, splits, insider trades, and institutional holdings via the yf.Ticker object.

Do I need pandas to use yfinance for trading research?

Yes, you need pandas to use yfinance for trading research. The skill requires the yfinance Python package and pandas to download OHLCV, fundamentals, and institutional data for algorithmic trading workflows.