yahooclaw

Yahoo Finance API integration for OpenClaw. Use when users ask for stock prices, company financials, historical data, dividends, or market data. Supports real-time quotes, financial statements, and market analysis.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "yahooclaw" with this command: npx skills add leohuang8688/yahoo-claw

YahooClaw - Yahoo Finance API Integration

功能说明

yahooclaw 是一个集成 Yahoo Finance API 的 OpenClaw 技能,提供实时股票数据查询、财务分析、历史股价等功能。

使用场景

1. 查询实时股价

查询 AAPL 的股价
特斯拉现在多少钱
NVDA 最新股价

2. 查询公司信息

苹果公司的市值是多少
微软的市盈率
谷歌的营收数据

3. 历史数据

显示 AAPL 过去 30 天股价
特斯拉上个月走势

4. 财务指标

苹果的资产负债表
腾讯的利润表

5. 股息分红

AAPL 分红是多少
哪些股票股息率高

使用示例

基础用法

const YahooClaw = require('./src/yahoo-finance.js');

// 获取实时股价
const quote = await YahooClaw.getQuote('AAPL');
console.log(quote);

// 获取历史数据
const history = await YahooClaw.getHistory('TSLA', '1mo');
console.log(history);

// 获取公司信息
const info = await YahooClaw.getCompanyInfo('MSFT');
console.log(info);

OpenClaw 集成

// 在 OpenClaw agent 中调用
const result = await tools.yahooclaw.getQuote({symbol: 'AAPL'});

API 参数说明

getQuote(symbol)

  • symbol: 股票代码(如 AAPL, TSLA, 0700.HK)
  • 返回: 实时股价、涨跌幅、成交量等

getHistory(symbol, period)

  • symbol: 股票代码
  • period: 时间周期(1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max)
  • 返回: 历史股价数据

getCompanyInfo(symbol)

  • symbol: 股票代码
  • 返回: 公司信息、市值、市盈率、市净率等

getDividends(symbol)

  • symbol: 股票代码
  • 返回: 股息分红历史

环境变量

# Yahoo Finance API(可选,基础功能无需 API key)
YAHOO_FINANCE_API_KEY=your_api_key_here

# 代理设置(如果需要)
HTTP_PROXY=http://proxy.example.com:8080
HTTPS_PROXY=https://proxy.example.com:8080

注意事项

  1. 数据延迟:Yahoo Finance 实时数据可能有 15 分钟延迟
  2. 请求限制:建议控制请求频率,避免被限流
  3. 港股/A 股:支持港股(0700.HK)、A 股(600519.SS)等
  4. 错误处理:网络问题或无效代码会返回错误信息

故障排除

常见问题

  1. 获取数据失败

    • 检查网络连接
    • 验证股票代码格式
    • 查看 Yahoo Finance 服务状态
  2. 数据延迟

    • 这是正常现象,Yahoo Finance 实时数据有延迟
    • 考虑使用付费 API 获取真正实时数据
  3. A 股/港股代码格式

    • A 股:600519.SS(茅台)
    • 港股:0700.HK(腾讯)
    • 美股:AAPL(苹果)

相关资源

更新日志

v0.1.0 (2026-03-09)

  • ✅ 初始版本发布
  • ✅ 实时股价查询
  • ✅ 历史数据查询
  • ✅ 公司信息查询
  • ✅ 股息分红查询
  • ✅ OpenClaw 集成

许可证

MIT License

作者

PocketAI for Leo - OpenClaw Community

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

可接入飞书的senseaudio角色扮演助手

飞书语音陪伴技能。当用户在飞书机器人会话中发送任何文字或语音消息时触发此技能。 大模型根据用户自定义的虚拟角色人设,生成符合角色性格的文本回复, 并通过 SenseAudio TTS 合成语音,以飞书原生语音条形式回复,不要生成任何文字消息回复到对话框里,只需要符合该伴侣人设的对话即可。 首次使用时引导用户完成角...

Registry SourceRecently Updated
2950klilyz
General

Med Tracker

Medication tracker for logging prescriptions, dosages, schedules, and reminders. Use when users want to track what medications they take, set reminders, or c...

Registry SourceRecently Updated
General

Voyage

Travel planning, itinerary construction, and reservation management. Use when the user wants to plan a trip, build an itinerary, find lodging or restaurants,...

Registry SourceRecently Updated
General

Pptx Master V1.2.3 20260507

专业级 AI 驱动 SVG 内容生成系统。支持 PDF/DOCX/URL/Markdown 转换为原生可编辑的 PPTX。 多角色协作流程,输出高质量演示文稿,适合财报分析、技术汇报、商业演示等专业场景。 版本 v1.2.3,新增 XML 实体自动转义(修复孤立 & 符号导致解析失败),支持 HUAWEI、red...

Registry SourceRecently Updated