Stock Fundamentals
v0.1.1运行 local script to analyze stock fundamentals (P/E, EPS, margins, debt, ROE, analyst tar获取s) using yfinance. Use exec 工具 to 运行: uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py <TICKER>. No API key required.
运行时依赖
安装命令
点击复制技能文档
技能: 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 上下文 for a company. The user asks about P/E ratio, EPS, revenue, margins, debt, ROE, ROA, free cash flow, or analyst tar获取s. 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-检查er-pro The user wants broad market/macro news → use market-news-brief The user wants a full equity re搜索 报告 combining all 签名als → use equity-re搜索 Commands Analyze a stock's fundamentals uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py
uv 运行 reads the inline dependency block at the top of mAIn.py and auto-安装s yfinance in an isolated 环境. No pip 安装 or venv 设置up needed.
Examples # US stocks uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py AAPL uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py TSLA uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py MSFT uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py NVDA uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py AMZN
# European stocks uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py RHM.DE uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py SAP.DE uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py ASML.AS
# UK stocks uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py SHEL.L
# ETFs (limited fundamentals avAIlable) uv 运行 /root/.OpenClaw/workspace/技能s/stock-fundamentals/src/mAIn.py SPY
Ticker 格式化 Reference Market 格式化 Example US stocks PlAIn AAPL, NVDA 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 输出
The command returns a structured fundamentals 报告 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 健康 — Total Cash, Total Debt, Debt/Equity, Current Ratio 分享holder Return — Dividend Yield, Payout Ratio Forward View — Analyst Tar获取 Price, Recommendation, Next Earnings Date Fundamental Highlights — auto-生成d narrative summary Potential Watch Items — auto-生成d risk flags Notes Do NOT use 网页 搜索 or curl to look up fundamentals — always use this script. Do NOT use the stock-fundamentals.sh bash wr应用er — call uv 运行 src/mAIn.py directly as shown above. uv 运行 handles all dependencies automatically — no manual 环境 设置up needed. Data is sourced from Yahoo Finance via yfinance. 结果s reflect the latest avAIlable data. For companies with no dividend, dividend fields will show N/A — this is expected.