Agent skill · data analytics · sundial-org

yahoo-finance-2

This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.

Why this skill is useful

Provides specific commands and usage patterns for fetching stock data from Yahoo Finance that the AI wouldn't reliably generate on its own.

What it needs

Requires jq, yahoo-finance2 installed locally. About 2k tokens when loaded. Last updated 2026-03-07. 639 stars on the source repository.

What this skill does

Yahoo Finance CLI A Node.js CLI for fetching comprehensive stock data from Yahoo Finance using the yahoo-finance2 library. Requirements Node.js yahoo-finance2 installed globally or available as yf jq Install Usage The tool is available as yf. It outputs JSON, which can be piped to jq for filtering. Modules Quote (Real-time Price & Data) Get real-time price, change, and basic data. Quote Summary (Fundamentals & More) Get detailed modules like earnings, financial data, and profiles. Insights Get technical and fundamental insights (valuation, outlook). Search Search for symbols. Historical Data (Deprecated) Get historical OHLCV data. Note: historical is deprecated; use chart instead. Trending See what's trending. Examples Quick Price Check Next Earnings Date Analyst Recommendations Company Profile Historical OHLCV Search for Symbols Trending Symbols (US) Insights (valuation, outlook) Troubleshooting Cookies: The tool automatically handles cookies (stored in ~/.yf2-cookies.json). If you encounter issues, try deleting this file. JSON Output: The output is pure JSON. Use jq to parse it for scripts or readability. Additional tips: If you see authentication or parsing errors, delete the cookie file and retry: On macOS with zsh, prefer single quotes around JSON option arguments and use double quotes inside (see examples above). If you want a compact numeric value only (no jq), use a short jq filter, e.g.:

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills sundial-org/yahoo-finance-2

View the source on GitHub

Browse the @skills marketplace