← 返回 Skills 市场
ryandeangraves

Crypto Prices

作者 ryandeangraves · GitHub ↗ · v1.1.0
cross-platform ⚠ suspicious
916
总下载
0
收藏
9
当前安装
2
版本数
在 OpenClaw 中安装
/install crypto-prices
功能描述
Fetch live cryptocurrency and commodity prices from verified sources with caching and fallback, ensuring accurate and up-to-date market data.
使用说明 (SKILL.md)

Skill: crypto-prices

Purpose

Fetch live cryptocurrency and commodity prices using the local crypto_prices.py module. This is your single source of truth for all price data — never use web search for prices.

When to Use

  • Boss Man asks "what's BTC at?" or "price of gold" or any price query
  • You need current prices for market analysis, morning protocol, or any report
  • Anytime you're about to quote a price in conversation

How to Execute

Single Price Lookup

cd ~/clawd && python3 -c "
from crypto_prices import fetch_live_price, format_price_text
data = fetch_live_price('COIN_NAME')
if data:
    print(format_price_text(data))
    # Full details available in data dict:
    # data['price'], data['change_24h'], data['change_7d'], data['change_30d']
    # data['market_cap'], data['volume_24h'], data['high_24h'], data['low_24h']
    # data['ath'], data['ath_change_pct'], data['source']
else:
    print('Price unavailable — all providers failed')
"

Multiple Price Lookup (Batch)

cd ~/clawd && python3 -c "
from crypto_prices import fetch_multiple_prices, format_prices_block
prices = fetch_multiple_prices(['bitcoin', 'ethereum', 'xrp', 'sui', 'gold', 'silver'])
print(format_prices_block(prices))
"

Quick Price (Minimal Output)

cd ~/clawd && python3 -c "
from crypto_prices import fetch_live_price
d = fetch_live_price('COIN_NAME')
if d: print(f\"{d['symbol']}: \${d['price']:,.6g} ({d['change_24h']:+.2f}%)\")
"

Supported Assets

Input Resolves To Source
btc, bitcoin bitcoin CoinGecko
eth, ethereum ethereum DexScreener → CoinGecko
xrp, ripple ripple DexScreener → CoinGecko
sui sui CoinGecko
sol, solana solana CoinGecko
gold, xau gold Yahoo Finance → CoinGecko
silver, xag silver Yahoo Finance → CoinGecko
doge, ada, dot, avax, link, matic various CoinGecko

Provider Chain

  1. Cache (60s TTL) — serves instantly if fresh
  2. Yahoo Finance — metals only (gold/silver), most reliable for commodities
  3. CoinGecko full — comprehensive data (price, 24h/7d/30d change, ATH/ATL, market cap)
  4. CoinGecko simple — lighter endpoint if full is rate-limited
  5. DexScreener — DEX-based failover for crypto (ETH and XRP try this first)

Rules

  • NEVER use Brave Search for prices — it returns stale article snippets, not live data
  • NEVER guess or hallucinate prices — if all providers fail, say "price unavailable"
  • Cache is 60 seconds — calling twice within a minute is free
  • Rate limits: CoinGecko ~10 req/min, DexScreener ~60 req/min
  • For batch queries, the module handles delays automatically
安全使用建议
This package is missing the implementation it tells the agent to run. Do not install or enable it unless you trust the source and have the missing crypto_prices.py code reviewed. Ask the publisher for: (1) the crypto_prices.py module or a link to a trusted repository/release, (2) an explicit statement of required binaries (e.g., python3) and where the module should live, and (3) why the skill requires cd ~/clawd. If you must use it immediately, inspect the crypto_prices.py file before running: look for network endpoints, obfuscated code, or any code that reads other files or environment variables. Prefer a skill that either bundles its implementation or calls well-known remote APIs directly (with transparent network targets and optional API keys). Also note the package metadata/version in _meta.json doesn't match the registry metadata — ask the author to correct that before trusting the skill.
功能分析
Type: OpenClaw Skill Name: crypto-prices Version: 1.1.0 The skill bundle, consisting of `_meta.json` and `SKILL.md`, appears benign. The `SKILL.md` clearly outlines the purpose of fetching cryptocurrency and commodity prices using a local `crypto_prices.py` module. The instructions for the AI agent are straightforward, focusing on executing Python commands to interact with this module. Notably, the instructions include a guardrail explicitly telling the agent to 'NEVER use web search for prices,' which is a positive security measure to prevent the agent from using untrusted external sources. There is no evidence of prompt injection attempts, data exfiltration, or other malicious intent within the provided files. Potential vulnerabilities would reside in the unprovided `crypto_prices.py` module, but the instructions themselves are not malicious.
能力评估
Purpose & Capability
The description claims the skill 'fetch[es] live cryptocurrency and commodity prices', but there are no code files implementing that behavior (no crypto_prices.py) and the manifest declares no required binaries or environments. The SKILL.md requires Python and a local module in ~/clawd, neither of which are declared — this is inconsistent and suggests the skill as published is incomplete or depends on out-of-band code.
Instruction Scope
Runtime instructions explicitly tell the agent to cd into ~/clawd and run python -c "from crypto_prices import ..." and to treat that local module as the single source of truth. That directs the agent to execute local, unverified code and to ignore web searches. Relying on an undeclared local module gives broad discretion to whatever file exists at that path and could execute arbitrary code; the instructions also reference provider fallbacks but do not supply the implementation.
Install Mechanism
There is no install spec (instruction-only), which normally reduces risk because nothing is written to disk by the skill. However, the skill's behavior depends on an external local module not supplied by the package. That absence changes the threat model: the skill itself won't install code, but it instructs the agent to run code that must exist elsewhere.
Credentials
The skill declares no required environment variables or credentials (which is plausible for public APIs like CoinGecko), but the SKILL.md requires access to a specific user path (~/clawd) and an unprovided module. The path requirement and expectation to execute local Python code are not reflected in the declared requirements and are therefore disproportionate and undeclared.
Persistence & Privilege
The skill does not request persistent or elevated privileges (always: false, no installs). However, because it instructs the agent to import and execute a local module, it enables arbitrary code execution based on local files; that is an operational risk even without elevated privileges. No evidence the skill modifies other skills or system settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install crypto-prices
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /crypto-prices 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Version 1.1.0 - Added _meta.json file for enhanced metadata support. - No changes to core functionality or user-facing behavior.
v1.0.0
Initial release of the crypto-prices skill for live market data. - Fetches real-time cryptocurrency and commodity prices via a local Python module. - Supports both single and batch price lookups with detailed or minimal output. - Covers major cryptos and precious metals; robust provider fallback chain. - 60-second cache for quick repeat lookups with automatic rate limit handling. - Enforces strict rules: never guess, never use web search for price info.
元数据
Slug crypto-prices
版本 1.1.0
许可证
累计安装 9
当前安装数 9
历史版本数 2
常见问题

Crypto Prices 是什么?

Fetch live cryptocurrency and commodity prices from verified sources with caching and fallback, ensuring accurate and up-to-date market data. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 916 次。

如何安装 Crypto Prices?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install crypto-prices」即可一键安装,无需额外配置。

Crypto Prices 是免费的吗?

是的,Crypto Prices 完全免费(开源免费),可自由下载、安装和使用。

Crypto Prices 支持哪些平台?

Crypto Prices 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Crypto Prices?

由 ryandeangraves(@ryandeangraves)开发并维护,当前版本 v1.1.0。

💬 留言讨论