yfinance-data

Fetch financial and market data using the yfinance Python library. Use this skill whenever the user asks for stock prices, historical data, financial statements, options chains, dividends, earnings, analyst recommendations, or any market data. Triggers include: any mention of stock price, ticker symbol (AAPL, MSFT, TSLA, etc.), "get me the financials", "show earnings", "what's the price of", "download stock data", "options chain", "dividend history", "balance sheet", "income statement", "cash flow", "analyst targets", "institutional holders", "compare stocks", "screen for stocks", or any request involving Yahoo Finance data. Always use this skill even if the user only provides a ticker — infer intent from context.

Install

Hot:35

Download and extract to your skills directory

Copy command and send to OpenClaw for auto-install:

Download and install this skill https://openskills.cc/api/download?slug=himself65-skills-yfinance-data&locale=en&source=copy

yfinance-data — Retrieve Stock and Financial Market Data

Skill Overview


Use the Python yfinance library to obtain market data from Yahoo Finance, including stock prices, historical data, financial statements, options chains, dividends, earnings, and more.

Use Cases


  • Stock Analysis Research: Retrieve real-time quotes, historical price trends, technical indicators, and other data for technical analysis and fundamental research on one or multiple stocks.

  • Financial Data Query: Download financial statements such as balance sheets, income statements, and cash flow statements, and obtain company action data like dividends and stock splits.

  • Market Data Analysis: Query options chains, analyst ratings, institutional holdings, insider trades, and industry/sector data—supporting stock screening and multi-asset comparative analysis.
  • Core Features


  • Real-Time and Historical Data: Supports fetching current stock quotes and historical OHLCV data, with multiple time intervals ranging from 1 minute to monthly. Enables batch downloads for comparing multiple stocks.

  • Financial Statements and Analysis: Provides balance sheets, income statements, and cash flow statements (annual/quarterly), plus deep data such as dividend history, stock splits, earnings history, and analyst target prices.

  • Options and Derivatives: Supports querying option expiration dates, options chains (calls/puts), implied volatility, and other derivatives data to meet advanced trading analysis needs.
  • Frequently Asked Questions

    Is yfinance an official API from Yahoo Finance?


    No. yfinance is an open-source Python project, not an official product from Yahoo Finance. The data is for research and educational purposes only and should not be used for real trading decision-making.

    Which markets’ stock data are supported?


    yfinance mainly supports markets covered by Yahoo Finance, such as U.S. stocks and Hong Kong stocks. For A-shares, you can use Shanghai/Shenzhen stock codes (e.g., 600519.SS for Kweichow Moutai), but data completeness and real-time accuracy may vary.

    Are there any limitations on data retrieval?


    High-frequency data has historical range limits: 1-minute-level data is available for roughly the most recent 7 days; 1-hour-level data is about 730 days. Also note Yahoo Finance’s access-rate limits—it's recommended to add exception handling in your code.