yfinance

Retrieve historical OHLCV data and fundamentals from Yahoo Finance.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/20YN04/vibe-trading-macos --skill yfinance-20yn04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yfinance
Source: https://github.com/20YN04/vibe-trading-macos/tree/main/agent/src/skills/yfinance
Command: npx skills add https://github.com/20YN04/vibe-trading-macos --skill yfinance-20yn04

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill eliminates the need for expensive financial data subscriptions or complex API integrations by providing a direct, free interface to global market data, including historical prices, company fundamentals, and institutional holdings.

Core Features & Use Cases

  • Market Data Retrieval: Fetch historical OHLCV data for US and HK stocks, ETFs, and indices with support for multiple time intervals.
  • Fundamental Analysis: Access comprehensive company profiles, financial statements, institutional ownership, and insider transaction data.
  • Options Chain Analysis: Retrieve real-time options ladders, including strike prices, volume, and implied volatility for US-listed equities.

Quick Start

Use the yfinance skill to fetch the daily historical price data for Apple stock from the beginning of 2025 to the present date.

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 data for stocks without an API key?

You can fetch historical OHLCV data for US and Hong Kong stocks without an API key by retrieving it directly via Yahoo Finance. This approach satisfies requirements for unauthenticated, high-frequency market data access without external API keys or registration.

Can I retrieve options chains and implied volatility for US equities?

Yes, you can retrieve real-time options chains for US-listed equities. This includes accessing options ladders with strike prices, volume, and implied volatility data directly without needing expensive financial data subscriptions.

Does yfinance work for retrieving company fundamentals and institutional holdings?

yfinance works for retrieving comprehensive company fundamentals, financial statements, institutional ownership, and insider transaction data. It provides a direct, free interface to global market data for agent-based fundamental analysis.

What is the best way to get market data for automated backtesting workflows?

The best way to get market data for automated backtesting workflows is by retrieving historical prices across multiple time intervals. This provides the necessary historical OHLCV datasets to test trading strategies without complex API integrations.

Do I need external API keys or paid subscriptions to access global market data?

No, you do not need external API keys or paid subscriptions to access global market data. This solution eliminates the need for expensive financial data subscriptions by providing a direct, unauthenticated interface to Yahoo Finance.