Loading...
Loading...
Track real-time cryptocurrency prices across exchanges with historical data and alerts. Provides price data infrastructure for dependent skills (portfolio, tax, DeFi, arbitrage). Use when checking crypto prices, monitoring markets, or fetching historical price data. Trigger with phrases like "check price", "BTC price", "crypto prices", "price history", "get quote for", "what's ETH trading at", "show me top coins", or "track my watchlist".
npx skill4agent add jeremylongshore/claude-code-plugins-plus-skills tracking-crypto-pricespip install requests pandas yfinancepip install python-dotenv # For API key management{baseDir}/config/settings.yamlCOINGECKO_API_KEYpython {baseDir}/scripts/price_tracker.py --symbol BTCpython {baseDir}/scripts/price_tracker.py --symbols BTC,ETH,SOL# Top 10 by market cap
python {baseDir}/scripts/price_tracker.py --watchlist top10
# DeFi tokens
python {baseDir}/scripts/price_tracker.py --watchlist defi
# Layer 2 tokens
python {baseDir}/scripts/price_tracker.py --watchlist layer2top10defilayer2stablecoinsmemecoins# Last 30 days
python {baseDir}/scripts/price_tracker.py --symbol BTC --period 30d
# Last 90 days with CSV export
python {baseDir}/scripts/price_tracker.py --symbol BTC --period 90d --output csv
# Custom date range
python {baseDir}/scripts/price_tracker.py --symbol ETH --start 2024-01-01 --end 2024-12-31{baseDir}/config/settings.yamlcache:
spot_ttl: 30 # Seconds to cache spot prices
historical_ttl: 3600 # Seconds to cache historical data
currency:
default: usd # Default fiat currency
watchlists:
custom: # Add your own watchlist
- BTC
- ETH
- SOL================================================================================
CRYPTO PRICES Updated: [timestamp]
================================================================================
Symbol Price (USD) 24h Change Volume (24h) Market Cap
--------------------------------------------------------------------------------
BTC $97,234.56 +2.34% $28.5B $1.92T
ETH $3,456.78 +1.87% $12.3B $415.2B
SOL $142.34 +5.12% $2.1B $61.4B
--------------------------------------------------------------------------------
Total 24h Change: +2.44% (weighted)
================================================================================{
"prices": [
{
"symbol": "BTC",
"name": "Bitcoin",
"price": 97234.56,
"currency": "USD",
"change_24h": 2.34,
"volume_24h": 28500000000,
"market_cap": 1920000000000,
"timestamp": "[timestamp]",
"source": "coingecko"
}
],
"meta": {
"count": 1,
"currency": "USD",
"cached": false
}
}date,open,high,low,close,volume
[date],95000.00,96500.00,94200.00,96100.00,25000000000
[date],96100.00,97800.00,95800.00,97500.00,27000000000{baseDir}/config/settings.yaml# API Configuration
api:
coingecko:
api_key: ${COINGECKO_API_KEY} # Optional, from env
use_pro: false
yfinance:
enabled: true # Fallback source
# Cache Configuration
cache:
enabled: true
spot_ttl: 30 # Spot price TTL (seconds)
historical_ttl: 3600 # Historical data TTL (seconds)
directory: ./data
# Display Configuration
currency:
default: usd
supported:
- usd
- eur
- gbp
- jpy
- cad
- aud
# Predefined Watchlists
watchlists:
top10:
- bitcoin
- ethereum
- tether
- binancecoin
- solana
- ripple
- cardano
- avalanche-2
- dogecoin
- polkadot
defi:
- uniswap
- aave
- chainlink
- maker
- compound-governance-token
- curve-dao-token
- sushi
layer2:
- matic-network
- arbitrum
- optimism
- immutable-x{baseDir}/references/errors.md| Error | Cause | Solution |
|---|---|---|
| Invalid cryptocurrency ticker | Check spelling, use |
| Too many API calls | Wait 60s, or use API key for higher limits |
| No internet connection | Check connection, cached data will be used |
| Cached data older than TTL | Data still shown with warning, will refresh |
{baseDir}/references/examples.mdpython {baseDir}/scripts/price_tracker.py --symbol BTCBTC (Bitcoin)
$97,234.56 USD
+2.34% (24h) | Vol: $28.5B | MCap: $1.92Tpython {baseDir}/scripts/price_tracker.py --watchlist top10python {baseDir}/scripts/price_tracker.py --symbol ETH --period 90d --output csv{baseDir}/data/ETH_90d_[date].csvfrom price_tracker import get_current_prices, get_historical_prices
# Get prices for portfolio valuation
prices = get_current_prices(["BTC", "ETH", "SOL"])PRICES=$(python {baseDir}/scripts/price_tracker.py --symbols BTC,ETH --format json){baseDir}/data/cache.json| File | Purpose |
|---|---|
| Main CLI entry point |
| CoinGecko/yfinance abstraction |
| Cache read/write/invalidation |
| Output formatting |
| User configuration |
| Price cache (auto-generated) |