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
CODEBLOCK0
Get Ethereum Price in CNY
CODEBLOCK1
View Top 10 Cryptocurrencies
CODEBLOCK2
Search for a Coin
CODEBLOCK3
Commands
search <keyword>
Search for cryptocurrencies by name or symbol.
Example:
CODEBLOCK4
get <coin_id> [currency]
Get price for a specific cryptocurrency.
- -
coin_id: The CoinGecko ID (e.g., bitcoin, ethereum, solana) - INLINECODE3 : Optional, defaults to 'usd'. Supported: usd, cny, eur, jpy, gbp, krw, etc.
Example:
CODEBLOCK5
top [limit] [currency]
View top cryptocurrencies by market cap.
- -
limit: Number of coins to show (1-100), default 10 - INLINECODE6 : Optional, defaults to 'usd'
Example:
CODEBLOCK6
Finding Coin IDs
Use the search command to find the correct coin_id:
CODEBLOCK7
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
加密货币价格技能
使用免费的 CoinGecko API 查询实时加密货币价格和市场数据。
使用场景
- - 查询比特币、以太坊或任何加密货币的当前价格
- 查看按市值排名的顶级加密货币
- 监控24小时价格变化
- 按名称或符号搜索特定币种
- 转换不同货币的价格(美元、人民币、欧元等)
快速开始
获取比特币美元价格
bash
python3 scripts/crypto-price.py get bitcoin
获取以太坊人民币价格
bash
python3 scripts/crypto-price.py get ethereum cny
查看前10名加密货币
bash
python3 scripts/crypto-price.py top 10
搜索币种
bash
python3 scripts/crypto-price.py search solana
命令
search <关键词>
按名称或符号搜索加密货币。
示例:
bash
python3 scripts/crypto-price.py search bitcoin
输出:BTC - 比特币, ID: bitcoin
get <币种ID> [货币]
获取特定加密货币的价格。
- - coin_id:CoinGecko ID(例如:bitcoin、ethereum、solana)
- currency:可选,默认为usd。支持:usd、cny、eur、jpy、gbp、krw等。
示例:
bash
python3 scripts/crypto-price.py get bitcoin cny
输出:💰 比特币
价格:¥460,123.45
24h 涨跌:🟢 +5.23%
top [数量] [货币]
查看按市值排名的顶级加密货币。
- - limit:显示的币种数量(1-100),默认为10
- currency:可选,默认为usd
示例:
bash
python3 scripts/crypto-price.py top 5 cny
显示前5名币种及其人民币价格
查找币种ID
使用 search 命令查找正确的 coin_id:
bash
python3 scripts/crypto-price.py search binance
输出:BNB - BNB, ID: binancecoin
常用币种ID:
- - bitcoin、ethereum、solana、cardano、polkadot
- ripple(XRP)、binancecoin(BNB)、dogecoin、chainlink
注意事项
- - 使用免费的 CoinGecko API,存在速率限制
- 如果看到API 请求过于频繁,请等待一分钟再重试
- 价格仅供参考,不构成财务建议