yfinance

Retrieve market data and financial information from Yahoo Finance using yfinance.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill yfinance-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/finance/yfinance
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill yfinance-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accessing reliable, up-to-date market and financial data for stocks, ETFs, indices, and currencies often requires paid APIs or complex setups. This Skill provides a free, no‑API‑key solution by leveraging Yahoo Finance through the yfinance library.

Core Features & Use Cases

  • Historical OHLCV: Download minute‑level to monthly price data for US and Hong Kong securities, with automatic handling of interval limits.
  • Company Fundamentals: Retrieve financial statements, key ratios, dividends, splits, and insider transactions.
  • Institutional Holdings & Market Indices: Access institutional holder data, major index values, and sector ETFs.
  • FX Rates: Pull foreign‑exchange rates directly from Yahoo Finance.
  • Use Case Example: An analyst can quickly pull the past year’s daily price series for AAPL and its fundamental metrics to feed into a backtesting model without writing any custom scraper code.

Quick Start

Retrieve the last 30 days of daily OHLCV data for AAPL 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 download historical stock prices without an API key?

You can download historical stock prices without an API key by leveraging the yfinance library to retrieve instant OHLCV market data directly from Yahoo Finance for US and Hong Kong securities.

Can I pull company financial statements and fundamentals for free?

Yes, you can pull company financial statements and fundamentals for free. This solution retrieves financial statements, key ratios, dividends, splits, and insider transactions without requiring paid APIs.

What's the best way to get foreign exchange rates and ETF data from Yahoo Finance?

The best way to get foreign exchange rates and ETF data is using a Python library that leverages Yahoo Finance. It supports pulling FX rates, major index values, and sector ETFs natively.

Does this market data approach support minute-level to monthly price intervals?

Yes, this market data approach supports minute-level to monthly price intervals. It automatically handles interval limits and ticker conversion for US and Hong Kong markets.

Can I access institutional holdings and insider transactions without writing custom scraper code?

Yes, you can access institutional holdings and insider transactions without custom scraper code. The library handles data extraction directly, preventing the need for complex setups.