← 返回
数据分析 中文

Stock Fundamentals

Run local script to analyze stock fundamentals (P/E, EPS, margins, debt, ROE, analyst targets) using yfinance. Use exec tool to run: uv run /root/.openclaw/w...
使用 yfinance 在本地运行脚本分析股票基本面(P/E、EPS、利润率、负债、ROE、分析师目标),通过 exec 工具执行:uv run /root/.openclaw/w...
youpele52
数据分析 clawhub v0.1.2 2 版本 99733.8 Key: 无需
★ 0
Stars
📥 1,124
下载
💾 52
安装
2
版本
#latest

概述

Skill: Stock Fundamentals

When to use

  • The user wants a quick fundamental read on a stock beyond the current price.
  • The user wants valuation, profitability, growth, balance sheet, cash flow, dividend, or analyst expectation context for a company.
  • The user asks about P/E ratio, EPS, revenue, margins, debt, ROE, ROA, free cash flow, or analyst targets.
  • The user asks "is [company] a good buy?" or "what are the fundamentals for [company]?"

When NOT to use

  • The user only wants the current price or daily movement → use stock-price-checker-pro
  • The user wants broad market/macro news → use market-news-brief
  • The user wants a full equity research report combining all signals → use equity-research

Commands

Analyze a stock's fundamentals

uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py <TICKER>

> uv run reads the inline dependency block at the top of main.py and auto-installs yfinance in an isolated environment. No pip install or venv setup needed.

Examples

# US stocks
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py AAPL
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py TSLA
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py MSFT
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py NVDA
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py AMZN

# European stocks
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py RHM.DE
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py SAP.DE
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py ASML.AS

# UK stocks
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py SHEL.L

# ETFs (limited fundamentals available)
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py SPY

Ticker Format Reference

MarketFormatExample
---------------------------------------------------
US stocksPlainAAPL, NVDA
German stocks.DE suffixRHM.DE, SAP.DE
UK stocks.L suffixSHEL.L, BP.L
Dutch stocks.AS suffixASML.AS
Japanese.T suffix7203.T
Korean.KS suffix005930.KS
Crypto-USDBTC-USD, ETH-USD

Output

The command returns a structured fundamentals report including:

  • Header — company name, sector, industry, market cap
  • Valuation — Trailing P/E, Forward P/E, PEG Ratio, Price/Sales, Price/Book, EV/EBITDA
  • Profitability — Gross Margin, Operating Margin, Net Margin, ROE, ROA
  • Growth — Revenue Growth (YoY), Earnings Growth (YoY)
  • Financial Health — Total Cash, Total Debt, Debt/Equity, Current Ratio
  • Shareholder Return — Dividend Yield, Payout Ratio
  • Forward View — Analyst Target Price, Recommendation, Next Earnings Date
  • Fundamental Highlights — auto-generated narrative summary
  • Potential Watch Items — auto-generated risk flags

Notes

  • Do NOT use web search or curl to look up fundamentals — always use this script.
  • Do NOT use the stock-fundamentals.sh bash wrapper — call uv run src/main.py directly as shown above.
  • uv run handles all dependencies automatically — no manual environment setup needed.
  • Data is sourced from Yahoo Finance via yfinance. Results reflect the latest available data.
  • For companies with no dividend, dividend fields will show N/A — this is expected.

版本历史

共 2 个版本

  • v0.1.2 当前
    2026-05-28 12:47
  • v0.1.1
    2026-03-30 00:30 安全 安全

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

productivity

Remind Me

youpele52
在频道范围内创建、列出、取消提醒和定时任务。适用于用户说“提醒我”“设置闹钟”“安排…”的场景。
★ 4 📥 4,187
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 139,786
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,765