stock-explorer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStock Information Explorer
股票信息探索工具
This skill fetches OHLCV data from Yahoo Finance via and computes technical indicators locally (no API key required).
yfinance本技能通过从Yahoo Finance获取OHLCV数据,并本地计算技术指标(无需API密钥)。
yfinanceDependencies
依赖项
Python packages (install once):
bash
pip install yfinance rich pandas plotille需安装的Python包(仅需安装一次):
bash
pip install yfinance rich pandas plotilleCommands
命令
IMPORTANT: Always use the environment variable to locate scripts.
$SKILLS_ROOT重要提示: 请始终使用环境变量定位脚本。
$SKILLS_ROOT1) Real-time Quotes (price
)
price1) 实时报价(price
)
pricebash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLAbash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLAshorthand
简写方式
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
undefinedpython "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
undefined2) Fundamental Summary (fundamentals
)
fundamentals2) 基本面汇总(fundamentals
)
fundamentalsbash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDAbash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDA3) ASCII Trend (history
)
history3) ASCII趋势图(history
)
historybash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mobash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mo4) Professional Analysis (pro
)
pro4) 专业分析(pro
)
pro输出详细的技术指标文本分析报告。
bash
undefined输出详细的技术指标文本分析报告。
bash
undefined基础分析(价格区间)
基础分析(价格区间)
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" pro 002368.SZ 6mo
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
undefinedexport PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" pro 002368.SZ 6mo --rsi --macd --bb
undefined可用指标 (optional)
可用指标(可选)
- : RSI(14) - 超买超卖指标
--rsi - : MACD(12,26,9) - 趋势动量指标
--macd - : Bollinger Bands(20,2) - 布林带
--bb - : VWAP - 成交量加权均价
--vwap - : ATR(14) - 平均真实波幅
--atr
- : RSI(14) - 超买超卖指标
--rsi - : MACD(12,26,9) - 趋势动量指标
--macd - : 布林带(20,2) - Bollinger Bands
--bb - : VWAP - 成交量加权均价
--vwap - : ATR(14) - 平均真实波幅
--atr
5) One-shot Report (report
)
report5) 一站式报告(report
)
report输出综合分析报告(行情+基本面+技术信号)。
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" report 000660.KS 6mo输出综合分析报告(行情+基本面+技术信号)。
bash
export PYTHONIOENCODING=utf-8
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" report 000660.KS 6moTicker Examples
代码示例
- A-share: ,
600519.SS000001.SZ - US stocks: ,
AAPL,NVDATSLA - HK stocks: ,
0700.HK9988.HK - Crypto: ,
BTC-USDETH-KRW - Forex:
USDKRW=X
- A股: ,
600519.SS000001.SZ - 美股: ,
AAPL,NVDATSLA - 港股: ,
0700.HK9988.HK - 加密货币: ,
BTC-USDETH-KRW - 外汇:
USDKRW=X
Notes / Limitations
注意事项 / 限制
- Indicators are computed locally from price data
- Data quality may vary by ticker/market
- 所有输出均为文本格式
- Windows 环境中文显示需设置
export PYTHONIOENCODING=utf-8
- 指标由价格数据本地计算得出
- 数据质量可能因代码/市场而异
- 所有输出均为文本格式
- Windows环境下中文显示需设置
export PYTHONIOENCODING=utf-8