Skip to content
Back to skills

Crypto Prices

ASecurity

Fetch live cryptocurrency and commodity prices using the local

  • 21 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added September 7, 2026
blockchainpythongobash

Security analysis

A100/100

Scanned September 7, 2026

npx -y skills add modbender/skill-library-mcp --skill crypto-prices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Crypto Prices?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Crypto Prices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/modbender-crypto-prices/badge)](https://www.skillsdirectory.com/skills/modbender-crypto-prices)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "Skill: crypto-prices"
description: Fetch live cryptocurrency and commodity prices using the local
  cryptoprices.py module. This is your single source of truth for all price data
  — never use web search for prices.
---

# 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
```bash
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)
```bash
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)
```bash
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in blockchain →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.