用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/DeGrandis/stock_cli --skill stock命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | stock |
| description | Get real-time stock prices, historical data, and market analysis from Yahoo Finance for any ticker symbol |
| version | 2.0.0 |
| user-invocable | true |
| slash-command | stock |
| metadata | {"openclaw":{"requires":{"bins":["node"]},"emoji":"📈","category":"finance","tags":["stocks","crypto","market","prices","history","yahoo-finance","analysis"],"network":true},"parameters":{"type":"object","properties":{"command":{"type":"string","enum":["price","history"],"description":"price: current quote | history: historical data"},"symbol":{"type":"string","description":"Stock ticker (AAPL), crypto pair (BTC-USD), or market index (^GSPC)"},"range":{"type":"string","description":"Time range for history: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max (default: 1mo)"}},"required":["command","symbol"]},"examples":[{"prompt":"What's the price of Apple stock?","call":"stock","args":{"command":"price","symbol":"AAPL"}},{"prompt":"How has AAPL performed this month?","call":"stock","args":{"command":"history","symbol":"AAPL","range":"1mo"}},{"prompt":"Show me Tesla stock trend over the past year","call":"stock","args":{"command":"history","symbol":"TSLA","range":"1y"}},{"prompt":"How much is Bitcoin?","call":"stock","args":{"command":"price","symbol":"BTC-USD"}},{"prompt":"What's the S&P 500 at?","call":"stock","args":{"command":"price","symbol":"^GSPC"}}]} |
Get real-time stock prices, historical data, and comprehensive market analysis using Yahoo Finance API.
Execution: This skill is executed using node via the exec command.
Command: node ~/.openclaw/skills/stock/index.js price <SYMBOL>
Returns current price, daily change, and last update time.
Command: node ~/.openclaw/skills/stock/index.js history <SYMBOL> [range]
Ranges: 1d, 5d, 1mo (default), 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
Returns:
The symbol should be:
User: "What's the price of Apple stock?"
Command: node ~/.openclaw/skills/stock/index.js price AAPL
Output:
AAPL (Apple Inc.)
Price: $264.58
Change: +4.00 (+1.54%)
Time: 2/20/2026, 4:00:02 PM
User: "How has Apple stock performed this month?"
Command: node ~/.openclaw/skills/stock/index.js history AAPL 1mo
Output:
=== AAPL Historical Data (1mo) ===
Period: 1/21/2026 to 2/20/2026
Data Points: 22 days
SUMMARY:
Starting Price: $247.65
Ending Price: $264.58
Change: +$16.93 (+6.84%)
Period High: $280.91
Period Low: $244.68
Volatility: $36.23 (14.81%)
Avg Volume: 54.94M shares/day
RECENT PRICES (Last 10 Days):
[Table with Date, Close, High, Low, Volume]
Response: "Apple is up 6.84% this month, currently at $264.58. It peaked at $280.91 on Feb 6 but dropped on Feb 12 with high volume (81M shares), likely due to news."
User: "Is Tesla more volatile than Apple?" Commands:
node ~/.openclaw/skills/stock/index.js history TSLA 1y
node ~/.openclaw/skills/stock/index.js history AAPL 1y
Analysis: Compare volatility percentages from output. TSLA shows 132.83% volatility vs AAPL's lower volatility. Response: "Yes, Tesla is significantly more volatile. Over the past year, TSLA had a price range of $284.58 (132.83% volatility) while AAPL was much more stable."
User: "How much is Bitcoin?"
Command: node ~/.openclaw/skills/stock/index.js price BTC-USD
Output:
BTC-USD (Bitcoin USD)
Price: $51234.56
Change: -432.10 (-0.84%)
Time: 2/13/2026, 3:45:12 PM
User: "Compare AAPL and TSLA performance this month" Action: Run history command for both symbols with 1mo range, compare the Change percentages and volatility metrics
SYMBOL (Full Name)
Price: $XXX.XX
Change: +/-X.XX (+/-X.XX%)
Time: MM/DD/YYYY, HH:MM:SS AM/PM
=== SYMBOL Historical Data (range) ===
Period: MM/DD/YYYY to MM/DD/YYYY
Data Points: N days
SUMMARY:
Starting Price: $XXX.XX
Ending Price: $XXX.XX
Change: +/-$XX.XX (+/-XX.XX%)
Period High: $XXX.XX
Period Low: $XXX.XX
Volatility: $XX.XX (XX.XX%)
Avg Volume: XX.XXM shares/day
RECENT PRICES (Last 10 Days):
Date | Close | High | Low | Volume
-----------|---------|---------|---------|------------
[10 rows of daily data]
https modulequery1.finance.yahoo.com)Stocks: AAPL, TSLA, MSFT, GOOGL, AMZN, META, NVDA, etc.
Cryptocurrencies:
Market Indices:
ETFs: SPY, QQQ, DIA, IWM, VOO, VTI, etc.
https://query1.finance.yahoo.com/v8/finance/chart/{SYMBOL}interval=1d&range=1d (gets current day data)