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 INLINECODE0
- The user wants broad market/macro news → use INLINECODE1
- The user wants a full equity research report combining all signals → use INLINECODE2
Commands
Analyze a stock's fundamentals
CODEBLOCK0
INLINECODE3 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
CODEBLOCK1
Ticker Format Reference
| Market | Format | Example |
|---|
| US stocks | Plain | INLINECODE6 , INLINECODE7 |
| German stocks |
.DE suffix |
RHM.DE,
SAP.DE |
| UK stocks |
.L suffix |
SHEL.L,
BP.L |
| Dutch stocks |
.AS suffix |
ASML.AS |
| Japanese |
.T suffix |
7203.T |
| Korean |
.KS suffix |
005930.KS |
| Crypto |
-USD |
BTC-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. - INLINECODE25 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.
技能:股票基本面分析
使用场景
- - 用户希望快速了解某只股票除当前价格之外的基本面信息
- 用户需要了解公司的估值、盈利能力、成长性、资产负债表、现金流、股息或分析师预期
- 用户询问市盈率、每股收益、营收、利润率、负债、净资产收益率、总资产收益率、自由现金流或分析师目标价
- 用户提问“[公司]值得买入吗?”或“[公司]的基本面如何?”
禁止使用场景
- - 用户仅需当前价格或日内走势 → 使用 stock-price-checker-pro
- 用户需要广泛的市场/宏观新闻 → 使用 market-news-brief
- 用户需要综合所有信号的完整股票研究报告 → 使用 equity-research
命令
分析股票基本面
bash
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py <股票代码>
uv run 会读取 main.py 顶部的内联依赖块,并在隔离环境中自动安装 yfinance,无需手动执行 pip install 或配置虚拟环境。
示例
bash
美股
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
欧洲股票
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
英国股票
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py SHEL.L
ETF(基本面数据有限)
uv run /root/.openclaw/workspace/skills/stock-fundamentals/src/main.py SPY
股票代码格式参考
| 市场 | 格式 | 示例 |
|---|
| 美股 | 直接输入 | AAPL、NVDA |
| 德国股票 |
后缀 .DE | RHM.DE、SAP.DE |
| 英国股票 | 后缀 .L | SHEL.L、BP.L |
| 荷兰股票 | 后缀 .AS | ASML.AS |
| 日本股票 | 后缀 .T | 7203.T |
| 韩国股票 | 后缀 .KS | 005930.KS |
| 加密货币 | 后缀 -USD | BTC-USD、ETH-USD |
输出内容
该命令将返回结构化的基本面报告,包含以下内容:
- - 基本信息 — 公司名称、行业、产业、市值
- 估值指标 — 滚动市盈率、远期市盈率、PEG比率、市销率、市净率、企业价值/EBITDA
- 盈利能力 — 毛利率、营业利润率、净利润率、净资产收益率、总资产收益率
- 成长性 — 营收增长率(同比)、盈利增长率(同比)
- 财务健康 — 总现金、总负债、负债权益比、流动比率
- 股东回报 — 股息率、派息率
- 前瞻展望 — 分析师目标价、评级、下次财报日期
- 基本面亮点 — 自动生成的叙述性总结
- 潜在关注事项 — 自动生成的风险提示
注意事项
- - 请勿使用网络搜索或curl命令查询基本面信息——始终使用此脚本。
- 请勿使用 stock-fundamentals.sh 的bash封装脚本——直接按上述方式调用 uv run src/main.py。
- uv run 会自动处理所有依赖项——无需手动配置环境。
- 数据来源于雅虎财经(通过 yfinance 获取),结果反映最新可用数据。
- 对于无股息分红的公司,股息相关字段将显示为“N/A”——此为正常现象。