Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

market-global-snapshot市场全球快照

Agent Skill

market-global-snapshot 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

18,194

周安装

736

GitHub Stars

公开资料未说明

下载量

5,711
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:market-global-snapshot(市场全球快照)
来源仓库:https://github.com/jiediking/market-global-snapshot
安装命令:
openclaw skills install market-global-snapshot
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install market-global-snapshot

简介

生成全球主要股指与大宗商品的结构化市场快照报告。

  • 适合用于每日行情回顾或宏观环境快速评估。
  • 当用户询问市场整体状况或数据概览时自动触发。
  • 依赖外部金融数据接口,需确保网络连通性与 API 可用性。
  • market-global-snapshot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
market-global-snapshot
description
Generate a structured global market snapshot report including major stock indices and commodities. Use when user asks for market data, stock market report, daily market summary, or needs current prices and changes for indices (S&P 500, Dow Jones, NASDAQ, SSE Composite, Shenzhen, STAR Market, Nikkei 225, Sensex) and commodities (Gold, Silver, Crude Oil, Copper).

Market Report Skill

Generate a structured global market snapshot report with stock indices and commodities data.

Architecture / Responsibility Split

Use a two-layer design:

  1. scripts/fetch_market.sh is a raw-fetch helper.
  2. The caller or agent is responsible for parsing, calculations, fallback decisions, and final formatting.

Helper responsibilities:

  • Fetch raw Yahoo Finance payloads.
  • Fetch and decode raw Sina Finance payloads for supported China-market tickers.
  • Return raw source responses on stdout when successful.
  • Write helper diagnostics to stderr and exit non-zero on failure.

Caller responsibilities:

  • Choose the source using the fallback order below.
  • Parse Yahoo close arrays from the returned JSON.
  • Fetch and parse Trading Economics pages outside scripts/fetch_market.sh.
  • Parse Sina numeric fields from the decoded response text.
  • Calculate change and percent.
  • Format the final market report.

scripts/fetch_market.sh does not parse market payloads into final numeric results.

Source Support And Fallback Order

  1. Yahoo Finance (Primary) - Fast, comprehensive
  2. Trading Economics (Higher-level fallback for most indices)
  3. Sina Finance (Helper-script fallback for supported China-market tickers)

If Yahoo Finance fails (rate limit, error, no data), use Trading Economics as a fallback in the calling workflow. scripts/fetch_market.sh only supports yahoo and sina; it does not implement a te mode. For STAR Market Composite specifically, use Sina Finance as the helper-script fallback. Callers should treat non-zero exit status as helper failure and read diagnostics from stderr rather than stdout.

Primary: Yahoo Finance

Ticker Symbols

Use these exact ticker symbols:

  • S&P 500: ^GSPC
  • Dow Jones: ^DJI
  • NASDAQ: ^IXIC
  • SSE Composite: 000001.SS
  • Shenzhen Component: 399001.SZ
  • STAR Market: 000680.SS (NOT 000688.SS)
  • Nikkei 225: ^N225
  • Sensex: ^BSESN
  • Gold: GC=F
  • Silver: SI=F
  • Crude Oil: CL=F
  • Copper: HG=F

Query Method

Use scripts/fetch_market.sh <ticker> yahoo or equivalent curl to fetch raw Yahoo Finance JSON:

curl -s "https://query1.finance.yahoo.com/v8/finance/chart/{TICKER}?interval=1d&range=5d" -H "User-Agent: Mozilla/5.0"

The caller must parse the returned JSON and compute the reported numbers.

Fallback: Trading Economics

If Yahoo Finance fails, use Trading Economics web fetch in the calling workflow rather than via scripts/fetch_market.sh:

Indices URLs

  • US (S&P 500): https://tradingeconomics.com/united-states/stock-market
  • China (SSE): https://tradingeconomics.com/china/stock-market
  • China (Shenzhen): https://tradingeconomics.com/china/stock-market (same page, different data)
  • Japan (Nikkei): https://tradingeconomics.com/japan/stock-market
  • India (Sensex): https://tradingeconomics.com/india/stock-market

Extract Data from Trading Economics

The caller must fetch the page content and extract:

  • Actual value: Current price (e.g., 6762.88)
  • Previous value: Previous close (e.g., 6830.71)

Calculate:

  • Change = Actual - Previous
  • Percent = (Change / Previous) * 100

Example from US page:

Actual: 6762.88
Previous: 6830.71
Change: 6762.88 - 6830.71 = -67.83
Percent: -67.83 / 6830.71 * 100 = -0.99%

Fallback: Sina Finance (scripts/fetch_market.sh support)

If Yahoo Finance fails for the supported China-market tickers below, use scripts/fetch_market.sh <ticker> sina:

  • SSE Composite: 000001.SS -> sh000001
  • Shenzhen Component: 399001.SZ -> sz399001
  • STAR Market Composite: 000680.SS -> sh000680

For STAR Market Composite specifically, this is the preferred helper-script fallback.

Query Method

curl -s "https://hq.sinajs.cn/list=sh000680" \
  -H "User-Agent: Mozilla/5.0" \
  -H "Referer: https://finance.sina.com.cn" | iconv -f GB2312 -t UTF-8

scripts/fetch_market.sh follows this query shape and decodes with iconv when available. It returns decoded raw response text; the caller must parse the numeric fields.

Response Format

var hq_str_sh000680="科创综指,open,prev_close,low,high,close,...

Extract Data

The caller must parse the response to extract:

  • Name: 科创综指 (STAR Market Composite)
  • Current: Field 6 (close price)
  • Previous: Field 3 (previous close)

Example:

科创综指,1771.6386,1774.0261,1744.2182,1782.4838,1744.0835,...
                                         ↑            ↑
                                     previous      current
Change: 1744.0835 - 1774.0261 = -29.94
Percent: -29.94 / 1774.0261 * 100 = -1.69%

Critical: Calculating Daily Change (Yahoo Finance)

NEVER use chartPreviousClose - it's often incorrect for Asian markets.

For Chinese indices (SSE, Shenzhen, STAR Market), the caller must:

  1. Query with range=5d to get multiple days
  2. Parse the indicators.quote[0].close array from the returned payload
  3. Find the LAST non-null close value - this is today's close
  4. Find the SECOND TO LAST non-null close value - this is previous trading day's close
  5. Calculate: Today's Close - Previous Close = Change

Example for SSE:

close array: [4182.59, 4122.68, 4082.47, 4108.57, 4124.19]
                                                      ↑ today (last)
                                                  ↑ previous (second to last)
Change: 4124.19 - 4108.57 = +15.62

Output Format

After parsing and calculation, generate this exact format with timestamps:

Latest snapshot from the `market-global-snapshot` skill, generated at `UTC timestamp` and `China time`.

📊 Stock indices:

- 🇺🇸 S&P 500: `price` 📈/📉 `change` (`percent`)
- 🇺🇸 Dow Jones Industrial Average: `price` 📈/📉 `change` (`percent`)
- 🇺🇸 NASDAQ Composite: `price` 📈/📉 `change` (`percent`)

- 🇨🇳 SSE Composite: `price` 📈/📉 `change` (`percent`)
- 🇨🇳 Shenzhen Component Index: `price` 📈/📉 `change` (`percent`)
- 🇨🇳 STAR Market Composite: `price` 📈/📉 `change` (`percent`)

- 🇯🇵 Nikkei 225: `price` 📈/📉 `change` (`percent`)

- 🇮🇳 Sensex: `price` 📈/📉 `change` (`percent`)

🛢️ Commodities:

- 🟡 Gold: `price USD / troy oz` 📈/📉 `change` (`percent`)
- ⚪ Silver: `price USD / troy oz` 📈/📉 `change` (`percent`)
- 🛢️ Crude Oil: `price USD / barrel` 📈/📉 `change` (`percent`)
- 🟠 Copper: `price USD / lb` 📈/📉 `change` (`percent`)

Error Handling

If Yahoo Finance, Trading Economics, AND Sina all fail:

  1. Return partial data with available indices
  2. Mark unavailable data as "N/A"
  3. Include error message at bottom: "⚠️ Some data unavailable due to API errors"

Treat source fetch failures and parse failures separately. If raw data is unavailable or unparsable, the caller should mark that item as "N/A".

Historical Data

To get previous day's data instead of today, the caller should:

  • Use second-to-last close value in the array (not today's)
  • This is the default behavior when asking for "yesterday"

Example:

close array: [4124.19, 4108.57, 4082.47, 4122.68, 4182.59]
                                        ↑            ↑
                                   yesterday      today

Formatting Rules

  • Use two decimal places for all numbers
  • Wrap prices in backticks
  • Use 📈 for positive, 📉 for negative
  • Include + or - sign for changes
  • Use percentage in parentheses with % sign

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.78%
按下载量换算4,728

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills