From sundial-org-awesome-openclaw-skills-4
Fetches real-time stock prices, earnings, financial data, and trending symbols from Yahoo Finance via the `yf` CLI. Outputs JSON for piping to jq.
How this skill is triggered — by the user, by Claude, or both
Slash command
/sundial-org-awesome-openclaw-skills-4:yahoo-finance-2The summary Claude sees in its skill listing — used to decide when to auto-load this skill
A Node.js CLI for fetching comprehensive stock data from Yahoo Finance using the `yahoo-finance2` library.
A Node.js CLI for fetching comprehensive stock data from Yahoo Finance using the yahoo-finance2 library.
yahoo-finance2 installed globally or available as yfjqbrew install jq
npm install yahoo-finance2
sudo ln -s /opt/homebrew/bin/yahoo-finance /usr/local/bin/yf
The tool is available as yf. It outputs JSON, which can be piped to jq for filtering.
yf <module> <symbol> [queryOptions]
Get real-time price, change, and basic data.
yf quote AAPL
yf quote AAPL | jq '.regularMarketPrice'
Get detailed modules like earnings, financial data, and profiles.
# Get specific sub-modules
yf quoteSummary AAPL '{"modules":["assetProfile", "financialData", "defaultKeyStatistics"]}'
# Common modules to request:
# - assetProfile (Company info, sector)
# - financialData (Target price, margins, cash)
# - defaultKeyStatistics (Enterprise value, float, shares)
# - calendarEvents (Earnings dates)
# - earnings (History and trend)
# - recommendationTrend (Analyst ratings)
# - upgradeDowngradeHistory
Get technical and fundamental insights (valuation, outlook).
yf insights AAPL
Search for symbols.
yf search "Apple"
yf search "BTC-USD"
Get historical OHLCV data. Note: historical is deprecated; use chart instead.
# Deprecated - use chart instead
yf historical AAPL '{"period1":"2024-01-01","period2":"2024-12-31"}'
# Recommended: use chart
yf chart AAPL '{"period1":"2024-01-01","period2":"2024-12-31"}'
See what's trending.
yf trendingSymbols US
Quick Price Check
# Full JSON then filter with jq
yf quote NVDA | jq '{symbol: .symbol, price: .regularMarketPrice, changePct: .regularMarketChangePercent}'
Next Earnings Date
# Use single quotes around the JSON option in zsh/bash
yf quoteSummary TSLA '{"modules":["calendarEvents"]}' | jq '.calendarEvents.earnings.earningsDate'
Analyst Recommendations
yf quoteSummary AAPL '{"modules":["recommendationTrend"]}'
Company Profile
yf quoteSummary MSFT '{"modules":["assetProfile"]}'
Historical OHLCV
# Using chart (recommended)
yf chart AAPL '{"period1":"2024-01-01","period2":"2024-12-31","interval":"1d"}' | jq '.quotes[0:5]'
# Using historical (deprecated, but still works)
yf historical AAPL '{"period1":"2024-01-01","period2":"2024-12-31","interval":"1d"}' | jq '.[0:5]'
Search for Symbols
yf search 'Apple'
yf search 'BTC-USD'
Trending Symbols (US)
yf trendingSymbols US
Insights (valuation, outlook)
yf insights AAPL
~/.yf2-cookies.json). If you encounter issues, try deleting this file.jq to parse it for scripts or readability.Additional tips:
rm -f ~/.yf2-cookies.json
yf quote AAPL
yf quote AAPL | jq -r '.regularMarketPrice'
npx claudepluginhub sundial-org/awesome-openclaw-skillsFetches current stock prices, market cap, and 52-week range from Yahoo Finance using yfinance. Returns JSON output. No API key required.
Fetches financial data from EODHD API including historical prices, fundamentals, options, technical indicators, news, sentiment, macro indicators, and more. Use for stock prices, company analysis, and financial tools.
Queries A-share individual stock data including price history, real-time quotes, capital flow, shareholders, block trades, pledges, ETF, and sector health via tushare-cli.