stock-explorer
它能做什么
这项技能获取股票的市场数据,并计算技术指标、基本面摘要和一份简短的文字报告。适合想快速获取股票数据、又不想打开多个网站的人。
适用场景
- ✓当你想查看某只股票的当前价格和行情时。
- ✓当你想了解一家公司基本面的摘要时。
- ✓当你想查看某只股票的 RSI、MACD 或布林带等技术指标的时候。
技能链接
https://github.com/netease-youdao/LobsterAI/blob/main/SKILLs/stock-explorer/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请显示 Tesla 当前的股价,以及它过去六个月的 RSI 和 MACD。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能从 Yahoo Finance 获取价格历史,并在你的电脑上计算指标。它可以输出行情、基本面摘要、ASCII 趋势图或完整的文字报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Stock Information Explorer
This skill fetches OHLCV data from Yahoo Finance via yfinance and computes technical indicators locally (no API key required).
Dependencies
Python packages (install once):
pip install yfinance rich pandas plotille
Commands
IMPORTANT: Always use the $SKILLS_ROOT environment variable to locate scripts.
1) Real-time Quotes (price)
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLA
# shorthand
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
2) Fundamental Summary (fundamentals)
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDA
3) ASCII Trend (history)
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mo
4) Professional Analysis (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
可用指标 (optional)
--rsi: RSI(14) - 超买超卖指标--macd: MACD(12,26,9) - 趋势动量指标--bb: Bollinger Bands(20,2) - 布林带--vwap: VWAP - 成交量加权均价--atr: ATR(14) - 平均真实波幅
5) One-shot Report (report)
输出综合分析报告(行情+基本面+技术信号)。
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" report 000660.KS 6mo
Ticker Examples
- A-share:
600519.SS,000001.SZ - US stocks:
AAPL,NVDA,TSLA - HK stocks:
0700.HK,9988.HK - Crypto:
BTC-USD,ETH-KRW - Forex:
USDKRW=X
Notes / Limitations
- Indicators are computed locally from price data
- Data quality may vary by ticker/market
- 所有输出均为文本格式
- Windows 环境中文显示需设置
export PYTHONIOENCODING=utf-8
常见问题
它需要 API 密钥吗?
不需要。描述中说明,指标在本地计算,无需 API 密钥。
有哪些可用的指标?
描述中列出的有 RSI、MACD、布林带、VWAP 和 ATR。
我需要哪些包?
需要安装 yfinance、rich、pandas 和 plotille,安装一次即可。
详情
作者的原始描述
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.
repo: netease-youdao/LobsterAI
热度
- GitHub 星标
- 6.2k
- 排名
- #14418
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …