Crypto Price Skill
Query real-time cryptocurrency prices and market data using the free CoinGecko API.
When to Use
- Check current price of Bitcoin, Ethereum, or any crypto
- View top cryptocurrencies by market cap
- Monitor 24-hour price changes
- Search for specific coins by name or symbol
- Convert prices to different currencies (USD, CNY, EUR, etc.)
Quick Start
Get Bitcoin Price in USD
python3 scripts/crypto-price.py get bitcoin
Get Ethereum Price in CNY
python3 scripts/crypto-price.py get ethereum cny
View Top 10 Cryptocurrencies
python3 scripts/crypto-price.py top 10
Search for a Coin
python3 scripts/crypto-price.py search solana
Commands
search <keyword>
Search for cryptocurrencies by name or symbol.
Example:
python3 scripts/crypto-price.py search bitcoin
# Output: BTC - Bitcoin, ID: bitcoin
get <coin_id> [currency]
Get price for a specific cryptocurrency.
coin_id: The CoinGecko ID (e.g., bitcoin, ethereum, solana)
currency: Optional, defaults to 'usd'. Supported: usd, cny, eur, jpy, gbp, krw, etc.
Example:
python3 scripts/crypto-price.py get bitcoin cny
# Output: 💰 BITCOIN
# 价格: ¥460,123.45
# 24h 涨跌: 🟢 +5.23%
top [limit] [currency]
View top cryptocurrencies by market cap.
limit: Number of coins to show (1-100), default 10
currency: Optional, defaults to 'usd'
Example:
python3 scripts/crypto-price.py top 5 cny
# Shows top 5 coins with prices in CNY
Finding Coin IDs
Use the search command to find the correct coin_id:
python3 scripts/crypto-price.py search "binance"
# Output: BNB - BNB, ID: binancecoin
Popular coin IDs:
- bitcoin, ethereum, solana, cardano, polkadot
- ripple (XRP), binancecoin (BNB), dogecoin, chainlink
Notes
- Uses free CoinGecko API with rate limits
- If you see "API 请求过于频繁", wait a minute and retry
- Prices are for reference only, not financial advice
1---2name: crypto-price-23description: Query cryptocurrency prices and market data via CoinGecko API. Use when: (1) checking current crypto prices, (2) viewing market cap rankings, (3) monitoring 24h price changes, (4) searching for specific cryptocurrencies, or (5) any crypto price-related queries. Supports BTC, ETH, and 10,000+ coins.4---56# Crypto Price Skill78Query real-time cryptocurrency prices and market data using the free CoinGecko API.910## When to Use1112- Check current price of Bitcoin, Ethereum, or any crypto13- View top cryptocurrencies by market cap14- Monitor 24-hour price changes15- Search for specific coins by name or symbol16- Convert prices to different currencies (USD, CNY, EUR, etc.)1718## Quick Start1920### Get Bitcoin Price in USD21```bash22python3 scripts/crypto-price.py get bitcoin23```2425### Get Ethereum Price in CNY26```bash27python3 scripts/crypto-price.py get ethereum cny28```2930### View Top 10 Cryptocurrencies31```bash32python3 scripts/crypto-price.py top 1033```3435### Search for a Coin36```bash37python3 scripts/crypto-price.py search solana38```3940## Commands4142### `search <keyword>`43Search for cryptocurrencies by name or symbol.4445Example:46```bash47python3 scripts/crypto-price.py search bitcoin48# Output: BTC - Bitcoin, ID: bitcoin49```5051### `get <coin_id> [currency]`52Get price for a specific cryptocurrency.5354- `coin_id`: The CoinGecko ID (e.g., bitcoin, ethereum, solana)55- `currency`: Optional, defaults to 'usd'. Supported: usd, cny, eur, jpy, gbp, krw, etc.5657Example:58```bash59python3 scripts/crypto-price.py get bitcoin cny60# Output: 💰 BITCOIN61# 价格: ¥460,123.4562# 24h 涨跌: 🟢 +5.23%63```6465### `top [limit] [currency]`66View top cryptocurrencies by market cap.6768- `limit`: Number of coins to show (1-100), default 1069- `currency`: Optional, defaults to 'usd'7071Example:72```bash73python3 scripts/crypto-price.py top 5 cny74# Shows top 5 coins with prices in CNY75```7677## Finding Coin IDs7879Use the `search` command to find the correct `coin_id`:8081```bash82python3 scripts/crypto-price.py search "binance"83# Output: BNB - BNB, ID: binancecoin84```8586Popular coin IDs:87- bitcoin, ethereum, solana, cardano, polkadot88- ripple (XRP), binancecoin (BNB), dogecoin, chainlink8990## Notes9192- Uses free CoinGecko API with rate limits93- If you see "API 请求过于频繁", wait a minute and retry94- Prices are for reference only, not financial advice