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...
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:
Call the function get_nasdaq100_futures (as declared in manifest.json) with optional parameters:
NQ=F (Nasdaq-100 futures).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.
On success, returns a JSON object with these keys:
NQ=F)On failure, returns:
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"
}
Input:
{
"parameters": {
"symbol": "ES=F"
}
}
query1.finance.yahoo.com). Results depend on market hours and network availability.fetch).scripts/main.js accordingly.ZIP package — ready to use