stock-explorer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Stock Information Explorer

股票信息探索工具

This skill fetches OHLCV data from Yahoo Finance via
yfinance
and computes technical indicators locally (no API key required).
本技能通过
yfinance
从Yahoo Finance获取OHLCV数据,并本地计算技术指标(无需API密钥)。

Dependencies

依赖项

Python packages (install once):
bash
pip install yfinance rich pandas plotille
需安装的Python包(仅需安装一次):
bash
pip install yfinance rich pandas plotille

Commands

命令

IMPORTANT: Always use the
$SKILLS_ROOT
environment variable to locate scripts.
重要提示: 请始终使用
$SKILLS_ROOT
环境变量定位脚本。

1) Real-time Quotes (
price
)

1) 实时报价(
price

bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLA
bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" price TSLA

shorthand

简写方式

python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
undefined
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" TSLA
undefined

2) Fundamental Summary (
fundamentals
)

2) 基本面汇总(
fundamentals

bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDA
bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" fundamentals NVDA

3) ASCII Trend (
history
)

3) ASCII趋势图(
history

bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mo
bash
python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" history AAPL 6mo

4) Professional Analysis (
pro
)

4) 专业分析(
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
undefined
export PYTHONIOENCODING=utf-8 python "$SKILLS_ROOT/stock-explorer/scripts/quote.py" pro 002368.SZ 6mo --rsi --macd --bb
undefined

可用指标 (optional)

可用指标(可选)

  • --rsi
    : RSI(14) - 超买超卖指标
  • --macd
    : MACD(12,26,9) - 趋势动量指标
  • --bb
    : Bollinger Bands(20,2) - 布林带
  • --vwap
    : VWAP - 成交量加权均价
  • --atr
    : ATR(14) - 平均真实波幅
  • --rsi
    : RSI(14) - 超买超卖指标
  • --macd
    : MACD(12,26,9) - 趋势动量指标
  • --bb
    : 布林带(20,2) - Bollinger Bands
  • --vwap
    : VWAP - 成交量加权均价
  • --atr
    : ATR(14) - 平均真实波幅

5) One-shot Report (
report
)

5) 一站式报告(
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 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
  • A股:
    600519.SS
    ,
    000001.SZ
  • 美股:
    AAPL
    ,
    NVDA
    ,
    TSLA
  • 港股:
    0700.HK
    ,
    9988.HK
  • 加密货币:
    BTC-USD
    ,
    ETH-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