← 返回
开发者工具

nasdaq100-futures

Fetch the latest Nasdaq-100 futures quote (default NQ=F) via Yahoo Finance chart API using Node.js and return price, change, percent change, and timestamp. U...
使用Node.js通过雅虎财经图表API获取最新的纳斯达克100指数期货报价(默认NQ=F),并返回价格、变动额、变动百分比和时间戳。
lbl581581
开发者工具 clawhub v1.0.4 2 版本 100000 Key: 无需
★ 1
Stars
📥 732
下载
💾 83
安装
2
版本
#latest

概述

Nasdaq-100 Futures Quote (Node.js)

Quick Start

This is an OpenClaw/ClawHub-style Node.js skill. The runtime entrypoint is scripts/main.handler (see manifest.json), and the exposed function is get_nasdaq100_futures.

Use this skill when you need the latest quote for Nasdaq-100 futures (or another Yahoo Finance symbol), including:

  • regularMarketPrice
  • previousClose
  • change and changePercent
  • timestamp (formatted)

How to Call

Call the function get_nasdaq100_futures (as declared in manifest.json) with optional parameters:

  • symbol (string, optional): Yahoo Finance symbol. Default is NQ=F (Nasdaq-100 futures).

Invocation Contract (Agent skill calling shape)

The handler expects the OpenClaw event shape (function parameters wrapped under parameters):

{
  "parameters": {
    "symbol": "NQ=F"
  }
}

If parameters.symbol is omitted, it defaults to NQ=F.

Output

On success, returns a JSON object with these keys:

  • symbol: the requested symbol (e.g. NQ=F)
  • price: latest price (string, 2 decimals)
  • change: price change vs previous close (string, signed, 2 decimals)
  • changePercent: percent change vs previous close (string, signed, 2 decimals)
  • time: formatted timestamp string
  • message: human-readable Chinese summary

On failure, returns:

  • error: true
  • message: error message

Examples

Example: Default Nasdaq-100 futures

Input:

{
  "parameters": {}
}

Output (example):

{
  "symbol": "NQ=F",
  "price": "15780.50",
  "change": "+120.25",
  "changePercent": "+0.77",
  "time": "2025-06-10 14:30:00",
  "message": "纳斯达克100期货最新价: $15780.50 (+120.25 / +0.77%) 数据时间: 2025-06-10 14:30:00"
}

Example: Custom symbol

Input:

{
  "parameters": {
    "symbol": "ES=F"
  }
}

Notes

  • Data source is Yahoo Finance chart API (query1.finance.yahoo.com). Results depend on market hours and network availability.
  • Requires Node.js >= 18 (uses built-in fetch).
  • If you need a different data provider, adjust scripts/main.js accordingly.

Additional resources

版本历史

共 2 个版本

  • v1.0.4 当前
    2026-03-29 16:29 安全 安全
  • v1.0.1
    2026-03-11 17:43

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,777

ngw_market_sentiment

lbl581581
ngw_market_sentiment 自动化技能
★ 0 📥 439
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 67 📥 180,060