CoinGecko Crypto Price Skill
Fetches crypto market data from the CoinGecko free API (no key required, ~30 req/min rate limit).
Commands
Price check (one or more coins)
python3 scripts/price.py bitcoin ethereum solana
Returns: price, 24h change, market cap, volume for each coin.
Search for a coin by name/ticker
python3 scripts/search.py "pepe"
Returns: matching coin IDs, symbols, and market cap ranks.
Token lookup by contract address (Solana, Ethereum, etc.)
python3 scripts/token.py solana <contract_address>
Returns: token name, price, 24h change, market cap, liquidity info.
Trending coins
python3 scripts/trending.py
Returns: top trending coins on CoinGecko.
Coin IDs
CoinGecko uses slug IDs (e.g.,
bitcoin,
ethereum,
solana,
dogecoin). Use
search.py to find the correct ID if unsure.
Rate Limits
Free API: ~30 calls/min. Cache results when doing bulk lookups. Avoid calling in tight loops.
CoinGecko加密货币价格技能
从CoinGecko免费API获取加密货币市场数据(无需密钥,每分钟约30次请求限制)。
命令
价格查询(一个或多个币种)
bash
python3 scripts/price.py bitcoin ethereum solana
返回:每个币种的价格、24小时涨跌幅、市值和交易量。
按名称/代码搜索币种
bash
python3 scripts/search.py pepe
返回:匹配的币种ID、代码和市值排名。
按合约地址查询代币(Solana、Ethereum等)
bash
python3 scripts/token.py solana <合约地址>
返回:代币名称、价格、24小时涨跌幅、市值和流动性信息。
热门币种
bash
python3 scripts/trending.py
返回:CoinGecko上的热门币种排行。
币种ID
CoinGecko使用短横线ID(例如:bitcoin、ethereum、solana、dogecoin)。如果不确定,可使用search.py查找正确的ID。
速率限制
免费API:约30次/分钟。批量查询时请缓存结果。避免在紧密循环中调用。