yfinance

Fetch OHLCV, fundamentals, and corporate actions from Yahoo Finance without API keys.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill yfinance-jacobhsu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/JacobHsu/vibe-trading-agent/tree/main/agent/src/skills/yfinance
Command: npx skills add https://github.com/JacobHsu/vibe-trading-agent --skill yfinance-jacobhsu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

yfinance removes the friction of collecting Yahoo Finance market data so traders can immediately feed OHLCV, corporate actions, and holdings into backtests without API keys or manual scraping.

Core Features & Use Cases

  • Unified loader: The built-in yfinance DataLoader (or auto source) translates project tickers into Yahoo format and handles batching for US, HK, ETF, index, and FX assets.
  • Comprehensive coverage: Download minute-to-month OHLCV, company info, financial statements, dividends, splits, and institutional or insider records through the same interface.
  • Use case: Backtest a cross-market strategy by setting source to yfinance (or auto) and pulling AAPL.US, 0700.HK, and SPY.US data plus the latest quarterly financials in one go.

Quick Start

Ask the agent to fetch AAPL.US daily OHLCV for January 2025 through yfinance to seed a new strategy run.

Frequently Asked Questions about yfinance

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

FAQPage Schema
How do I download historical OHLCV data from Yahoo Finance for backtesting?

You can pull minute-to-month OHLCV data from Yahoo Finance by specifying tickers like AAPL.US and a date range, which directly feeds into cross-market strategy research workflows without manual scraping.

Can I fetch financial statements and corporate actions without an API key?

Yes, fetching financial statements and corporate actions without an API key is supported natively, allowing you to retrieve dividends, splits, institutional holdings, and quarterly financials through a unified data loader interface.

Does yfinance work with Hong Kong stocks and global market tickers?

yfinance works with Hong Kong stocks and global market tickers by translating project tickers into Yahoo format, handling batching for US, HK, ETF, index, and FX assets within multi-market backtest workflows.

What is the best way to pull fundamentals and institutional holdings for cross-market strategy research?

The best way to pull fundamentals and institutional holdings for cross-market strategy research is using a unified loader that retrieves company info, financial statements, and insider records alongside OHLCV data in a single request.

Do I need to install API keys to retrieve dividends and stock splits?

No, you do not need API keys to retrieve dividends and stock splits; the built-in DataLoader directly accesses Yahoo Finance to pull corporate actions and OHLCV data instantly for trading research.