A Yahoo Finance (yfinance) powered financial analysis tool. Get real-time quotes, generate technical indicator reports (RSI/MACD/Bollinger/VWAP/ATR), summarize fundamentals, and run a one-shot report that outputs a text summary.
This skill fetches OHLCV data from Yahoo Finance via yfinance and computes technical indicators locally (no API key required).
Python packages (install once):
pip install yfinance rich pandas plotille
IMPORTANT: Always use the $SKILLS_ROOT environment variable to locate scripts.
price)python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLA
# shorthand
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
fundamentals)python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDA
history)python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mo
pro)输出详细的技术指标文本分析报告。
# 基础分析(价格区间)
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" pro 002368.SZ 6mo
# 带技术指标
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" pro 002368.SZ 6mo --rsi --macd --bb
--rsi : RSI(14) - 超买超卖指标--macd: MACD(12,26,9) - 趋势动量指标--bb : Bollinger Bands(20,2) - 布林带--vwap: VWAP - 成交量加权均价--atr : ATR(14) - 平均真实波幅report)输出综合分析报告(行情+基本面+技术信号)。
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" report 000660.KS 6mo
600519.SS, 000001.SZAAPL, NVDA, TSLA0700.HK, 9988.HKBTC-USD, ETH-KRWUSDKRW=Xexport PYTHONIOENCODING=utf-8