
Stock Correlation
Finds correlated peers, pairwise betas, and rolling co-movement for stocks using Yahoo Finance price history.
- skills.sh installs
- 4K
- GitHub stars
- 3.6K
- last updated
- Aug 21, 2026
What it does
- Routes requests across four modes: peer discovery, two-ticker return correlation, matrix clustering, and rolling or conditional correlation
- Covers daily log-return correlation, beta, R-squared, spread z-scores, and 60-day rolling statistics with yfinance
- Builds peer universes at runtime from industry and sector screens, with no hardcoded ticker lists
- Designed for research on pair trading, hedging pairs, and sympathy plays, with no investment advice provided
Install
$ npx -y skills add himself65/finance-skills --skill stock-correlation -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Stock Correlation Analysis Skill
If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the ! wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation.
Finds and analyzes correlated stocks using historical price data from Yahoo Finance via yfinance. Routes to specialized sub-skills based on user intent.
Important: This is for research and educational purposes only. Not financial advice. yfinance is not affiliated with Yahoo, Inc.
Step 1: Ensure Dependencies Are Available
Current environment status:
!`python3 -c "exec('try:\n import yfinance, pandas, numpy\n print(f\'yfinance={yfinance.__version__} pandas={pandas.__version__} numpy={numpy.__version__}\')\nexcept Exception:\n print(\'DEPS_MISSING\')')"`
If DEPS_MISSING, install required packages before running any code:
import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance", "pandas", "numpy"])
Details
- Repository
- github.com/himself65/finance-skills
- Categories
- Finance & Trading, Data Science & Analytics
- First seen
- May 16, 2026
More from himself65/finance-skills
All 24- Options Payoff3.9K
- Earnings Recap3.7K
- Generative Ui3.7K
- Earnings Preview3.7K
- Estimate Analysis3.6K
- Hormuz Strait3.6K
- Stock Liquidity3.6K
- Twitter Reader3.6K
- Etf Premium3.6K
- Company Valuation3.6K
- Sepa Strategy3.5K
- Startup Analysis3.5K
- Saas Valuation Compression3.4K
- Yc Reader3.3K
- Skill Creator3.3K
- Telegram Reader1.7K
- Finance Sentiment1.7K
- Discord Reader1.6K
- Linkedin Reader1.3K
- Tradingview Reader1.2K
- Opencli Reader1.1K
- Hyperliquid Reader599
- Yfinance Data4.5K
Similar to Stock Correlation
More Finance & Trading
yfinance-datahimself65/finance-skills4.5K installsFetch and analyze stock quotes, price history, financials, options, and ownership data via yfinance.
stock-analysisgracefullight/stock-checker12.3K installsAnalyzes stocks and crypto via Yahoo Finance, with portfolio tracking and period performance reports.
financial-market-analysissundial-org/awesome-openclaw-skills581 installsStructured stock and company analysis that pairs Yahoo Finance data with synthesized news sentiment and Buy, Hold, or Sell ratings.
longbridge-correlationlongbridge/skills495 installsQuantitative correlation and cointegration analysis for 2 to 10 symbols via Longbridge data, for decorrelation and pairs screening.
stock-liquidityhimself65/finance-skills3.6K installsStock-liquidity analysis via Yahoo Finance: bid-ask spreads, dollar volume, order depth, market impact, and turnover ratios.
technical-analysisstaskh/trading_skills611 installsComputes RSI, MACD, Bollinger Bands, SMA, and EMA for stocks, with multi-symbol and earnings support.