360 Secure SkillHub
360 安全技能中心

Stock Quote

该 Skill 通过 Python 脚本调用 Yahoo Finance 的非官方免费接口,按一个或多个代码获取股票、ETF 和加密货币的实时价格、涨跌幅、52 周区间、成交量与市值,输出单只行情卡片或多代码对比表格,无需 API 密钥,可用 --detail 查看详细视图。

josephflu
josephflu
热度 48.26
最近更新 2026-05-11 17:35:11
分类:数据依赖:代码执行 / 第三方 API应用场景:财务 / 市场分析 / 数据处理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add eagerbots-stock-quote
Metadata
name
eagerbots-stock-quote
description
Get real-time stock, ETF, and crypto prices. Compare tickers, check market cap and volume. Uses Yahoo Finance — no API key required.
version
1.0.0
metadata
{"openclaw":{"emoji":"📈"},"requires":{"bins":["python3"]},"homepage":"https://github.com/josephflu/clawhub-skills"}

stock-quote

Get real-time stock, ETF, and crypto prices via Yahoo Finance — no API key needed.

Trigger phrases

  • "What's Apple stock at?"
  • "What's the price of TSLA?"
  • "How is NVDA doing today?"
  • "Compare AAPL MSFT GOOG"
  • "What's BTC at?"
  • "Show me SPY and QQQ"
  • "Is the market up today?"
  • "How's the market doing?"
  • "Quote for [TICKER]"

Usage

Run uv run scripts/quote.py with one or more ticker symbols:

# Single ticker
uv run scripts/quote.py AAPL

# Crypto
uv run scripts/quote.py BTC-USD

# Multiple tickers (comparison table)
uv run scripts/quote.py AAPL MSFT GOOG NVDA

# Detailed view
uv run scripts/quote.py AAPL --detail

Output

Single ticker:

╭─────────────────────────────────────────╮
│ 🍎 Apple Inc. (AAPL) NASDAQ            │
│ $213.49 ▲ +2.31 (+1.09%) ● Market Open │
├─────────────────────────────────────────┤
│ 52W Range $164.08 ──────●──── $237.23  │
│ Volume 45.2M (avg 52.1M)               │
│ Market Cap $3.21T                       │
╰─────────────────────────────────────────╯

Multiple tickers: Rich comparison table with Ticker, Name, Price, Change, % Change, Market Cap — green for gains, red for losses.

Notes

  • Uses Yahoo Finance's unofficial API (free, no key required)
  • Crypto tickers use -USD suffix: BTC-USD, ETH-USD, SOL-USD
  • See references/common-tickers.md for popular symbols
  • Market status (open/closed) shown automatically