yfinance-data

Featured

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.

Data & Documents 3,309 stars 377 forks Updated 2 weeks ago MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
100
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# yfinance Data Skill Fetches financial and market data from Yahoo Finance using the [yfinance](https://github.com/ranaroussi/yfinance) Python library. **Important**: yfinance is not affiliated with Yahoo, Inc. Data is for research and educational purposes. --- ## Step 1: Ensure yfinance Is Available **Current environment status:** ``` !`python3 -c "exec('try:\n import yfinance\n print(\'yfinance \' + yfinance.__version__ + \' installed\')\nexcept Exception:\n print(\'YFINANCE_NOT_INSTALLED\')')"` ``` If `YFINANCE_NOT_INSTALLED`, install it before running any code: ```python import subprocess, sys subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance"]) ``` If yfinance is already installed, skip the install step and proceed directly. --- ## Step 2: Identify What the User Needs Match the user's request to one or more data categories below, then use the corresponding code from `references/api_reference.md`. | User Request | Data Category | Primary Method | |---|---|---| | Stock price, quote | Current price | `ticker.info` or `ticker.fast_info` | | Price history, chart data | Historical OHLCV | `ticker.history()` or `yf.download()` | | Balance sheet | Financial statements | `ticker.balance_sheet` | | Income statement, revenue | Financial statements | `ticker.income_stmt` | | Cash flow | Financial statements | `ticker.cashflow` | | Dividends | Corporate actions | `ticker.dividends` | | Stock splits | Corporate actions | `ticker.splits` | | Op...

Details

Author
himself65
Repository
himself65/finance-skills
Created
6 months ago
Last Updated
2 weeks ago
Language
JavaScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Listed

yfinance

Fetch Yahoo Finance market data via the yfinance library. Use for stock, ETF, mutual fund, index, crypto, futures, or FX questions — current quotes, historical OHLCV (daily / intraday), and company / fund fundamentals (P/E, dividend yield, sector, analyst targets, AUM, etc.). Triggers include "current price", "YTD performance", "N-year chart", "P/E ratio", "compare/rank tickers", "what does X do", and non-US tickers like 0700.HK or BMW.DE.

16 Updated today
mthli
AI & Automation Listed

yahoo_finance

Yahoo Finance provides stock information for a given ticker symbol, including stock price and trading information, company information, financial metrics, earnings and revenue, margins and returns, dividends, balance sheet data, ownership, analyst coverage, and risk metrics.

6 Updated 1 months ago
serejaris
Data & Documents Featured

earnings-recap

Generate a post-earnings analysis for any stock using Yahoo Finance data. Use when the user wants to review what happened after earnings, understand beat/miss results, see stock reaction, or get an earnings recap. Triggers: "AAPL earnings recap", "how did TSLA earnings go", "MSFT earnings results", "did NVDA beat earnings", "post-earnings analysis", "earnings surprise", "what happened with GOOGL earnings", "earnings reaction", "stock moved after earnings", "EPS beat or miss", "revenue beat or miss", "quarterly results for", "how were earnings", "AMZN reported last night", "earnings call recap", or any request about a company's recent earnings outcome. Use this skill when the user references a past earnings event, even if they just say "AAPL reported" or "how did they do".

3,309 Updated 2 weeks ago
himself65