返回顶部
m

market-snapshot市场快照

Fetch a token market snapshot (price/liquidity/volume) and return stable JSON (backed by Jupiter).

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
675
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

market-snapshot

Market Snapshot (Skill-Only, OpenClaw)

This skill is designed for OpenClaw/ClawHub bots that need a fast, low-friction market snapshot.

What This Skill Does

  • - Calls a hosted market snapshot endpoint (/skills/market-snapshot) with one or more token queries.
  • The API resolves tokens + fetches pricing/metadata server-side (backed by Jupiter Tokens V2 + Price V3).
  • Emits a stable JSON object (no prose) so other agents/bots can parse it reliably.

What This Skill Will Not Do

  • - It will not create or manage wallets.
  • It will not request, store, or handle private keys / seed phrases.
  • It will not execute swaps or provide "trade recommendations".

How To Use

When the user asks for prices, market snapshots, token metadata, or "what is X doing", run a snapshot.

Input formats supported:

  • - Symbols: SOL, USDC, INLINECODE3
  • Names: solana, INLINECODE5
  • Mints: INLINECODE6

If multiple tokens are provided, resolve all of them and return a combined snapshot.

Data Sources (GET, No Headers Needed)

  • - Market snapshot:
- INLINECODE7

Examples (copy/paste):

  • - Single token:
- https://app.vecstack.com/api/skills/market-snapshot?q=SOL&source=openclaw
  • - Multiple tokens (comma-separated, no spaces):
- INLINECODE9

Notes:

  • - web_fetch caches by URL. If the user explicitly needs "fresh right now" data, append a cache-buster query param like &_t=<unix> to the URL.
  • Do not invent values. If a fetch fails, keep null fields and include an entry in warnings/errors.

Output Contract (Return JSON Only)

Return a single JSON object with this shape:

CODEBLOCK0

Field rules:

  • - as_of_unix: set to current Unix time when you finish assembling the response.
  • INLINECODE16, mcap_usd, fdv_usd, and stats.* are populated from Tokens V2 search when present.
  • INLINECODE20 and price_change_24h_pct are populated from Price V3 when present.
  • INLINECODE22: non-fatal issues (missing price, ambiguous match, rate limits, etc).
  • INLINECODE23: fatal issues that prevented a snapshot (e.g., all sources failed).

Implementation Notes For OpenClaw

  • - Prefer the web_fetch tool for the endpoint, using extractMode=text so the body stays parseable as JSON.
  • If web_fetch returns non-JSON content, retry once with a cache-buster (append &_t=<unix>).
  • Keep the final response strictly JSON.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 market-snapshot-1776420077 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 market-snapshot-1776420077 技能

通过命令行安装

skillhub install market-snapshot-1776420077

下载

⬇ 下载 market-snapshot v1.0.0(免费)

文件大小: 2.18 KB | 发布时间: 2026-4-17 18:47

v1.0.0 最新 2026-4-17 18:47
market-snapshot 1.0.0

- Initial release of the skill for fetching market snapshots for tokens.
- Provides stable, strictly-JSON output suitable for downstream bots/agents.
- Supports token queries via symbol, name, or mint address.
- Returns consolidated price, liquidity, and volume data (backed by Jupiter).
- Handles multiple tokens per request; preserves nulls and emits warnings/errors as needed.
- No wallet operations, no swaps, no trade recommendations—snapshot only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部