CoinGecko

modbender2026-10-26查看 1859复制 764

从 CoinGecko 免费 API 获取加密货币价格、市场数据和代币信息。当用户询问加密货币价格、市值、24 小时涨跌、热门币种或代币查询时使用。覆盖 BTC、ETH、SOL 以及数千种山寨币。还支持通过合约地址查询 Solana 代币。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md1356 chars
---
name: coingecko
description: Fetch crypto prices, market data, and token info from the CoinGecko free API. Use when the user asks about crypto prices, market caps, 24h changes, trending coins, or token lookups. Covers BTC, ETH, SOL, and thousands of altcoins. Also supports Solana token lookups by contract address.
---

# 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.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧