coingecko
从 CoinGecko 免费 API 获取加密货币价格、市场数据和代币信息。当用户询问加密货币价格、市值、24 小时变化、趋势币或代币查找时使用。涵盖 BTC、ETH、SOL 和数千种山寨币。还支持通过合约地址查找 Solana 代币。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~olisim02-coingeckocURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~olisim02-coingecko/file -o olisim02-coingecko.md## 概述(中文) 从 CoinGecko 免费 API 获取加密货币价格、市场数据和代币信息。当用户询问加密货币价格、市值、24 小时变化、趋势币或代币查找时使用。涵盖 BTC、ETH、SOL 和数千种山寨币。还支持通过合约地址查找 Solana 代币。 ## 原文 # 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) ```bash python3 scripts/price.py bitcoin ethereum solana ``` Returns: price, 24h change, market cap, volume for each coin. ### Search for a coin by name/ticker ```bash python3 scripts/search.py "pepe" ``` Returns: matching coin IDs, symbols, and market cap ranks. ### Token lookup by contract address (Solana, Ethereum, etc.) ```bash python3 scripts/token.py solana <contract_address> ``` Returns: token name, price, 24h change, market cap, liquidity info. ### Trending coins ```bash 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.