coingecko
$
npx mdskill add TermiX-official/cryptoclaw/coingeckoFetch cryptocurrency prices, market data, trending tokens, and historical charts via the CoinGecko API.
- Helps users monitor real-time crypto prices and market trends for informed decisions.
- Integrates with the CoinGecko free API, supporting multiple blockchain platforms.
- Uses specific API endpoints to retrieve data based on coin IDs or contract addresses.
- Delivers results as structured data, including price changes and market rankings.
SKILL.md
.github/skills/coingeckoView on GitHub ↗
---
name: coingecko
description: Query CoinGecko API for prices, market data, trending tokens, and historical charts.
metadata: { "cryptoclaw": { "emoji": "🦎", "always": true } }
---
# CoinGecko API
Query cryptocurrency prices, market caps, charts, and trending tokens via the CoinGecko free API.
## Base URL
```
https://api.coingecko.com/api/v3
```
No API key required. Rate limit: ~30 calls/minute.
## Endpoints
### Price Lookup
```
GET /simple/price?ids={ids}&vs_currencies={currencies}&include_24hr_change=true&include_market_cap=true
```
- `ids`: comma-separated CoinGecko IDs (see ID table below)
- `vs_currencies`: `usd`, `btc`, `eth`, `bnb`
Example: `/simple/price?ids=bitcoin,ethereum&vs_currencies=usd&include_24hr_change=true`
### Token Price by Contract Address
```
GET /simple/token_price/{platform}?contract_addresses={addresses}&vs_currencies=usd&include_24hr_change=true
```
Platform IDs:
- `binance-smart-chain` — BSC
- `ethereum` — Ethereum
- `polygon-pos` — Polygon
- `arbitrum-one` — Arbitrum
- `optimistic-ethereum` — Optimism
- `base` — Base
Example: `/simple/token_price/binance-smart-chain?contract_addresses=0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82&vs_currencies=usd`
### Market Rankings
```
GET /coins/markets?vs_currency=usd&order=market_cap_desc&per_page=20&page=1&sparkline=false
```
Returns top coins with price, market cap, volume, and 24h change.
### Trending
```
GET /search/trending
```
Returns trending coins, NFTs, and categories. No parameters needed.
### Historical Chart
```
GET /coins/{id}/market_chart?vs_currency=usd&days={days}
```
- `days`: `1`, `7`, `14`, `30`, `90`, `365`, `max`
- Returns arrays of `[timestamp, value]` for prices, market_caps, total_volumes
### Coin Detail
```
GET /coins/{id}?localization=false&tickers=false&community_data=false&developer_data=false
```
Returns full metadata: description, links, contract addresses, market data.
## CoinGecko ID Reference
| Token | CoinGecko ID |
| ----- | ----------------- |
| BTC | bitcoin |
| ETH | ethereum |
| BNB | binancecoin |
| SOL | solana |
| USDT | tether |
| USDC | usd-coin |
| XRP | ripple |
| ADA | cardano |
| DOGE | dogecoin |
| AVAX | avalanche-2 |
| DOT | polkadot |
| MATIC | matic-network |
| LINK | chainlink |
| UNI | uniswap |
| CAKE | pancakeswap-token |
| ARB | arbitrum |
| OP | optimism |
| AAVE | aave |
| LDO | lido-dao |
| SHIB | shiba-inu |
For unknown tokens, search: `GET /search?query={name}`
## Usage Notes
- Always use `curl -s` to fetch, then parse the JSON response
- For on-chain token prices not listed on CoinGecko, fall back to DEX quotes via `swap_get_quote`
- The `market-data` skill provides high-level workflow guidance; this skill is the concrete API reference
- Report data source and freshness: "CoinGecko, fetched just now"
More from TermiX-official/cryptoclaw
- aave-bscInteract with Aave V3 lending protocol on BNB Smart Chain (BSC).
- agent-identityRegister and manage on-chain AI agent identity via ERC-8004.
- agentic-commerceCreate, fund, and settle on-chain agent jobs via ERC-8183 Agentic Commerce Protocol.
- binance-address-infoBinance Web3 official skill — query any wallet address for token holdings, balances, and portfolio data across BSC, Base, and Solana. Sourced from github.com/binance/binance-skills-hub.
- binance-market-rankBinance Web3 official skill — crypto market rankings including trending tokens, smart money inflow, social hype, meme ranks, and top trader PnL leaderboards. Sourced from github.com/binance/binance-skills-hub.
- binance-meme-rushBinance Web3 official skill — real-time meme token launchpad tracking and AI-powered trending topic discovery on Solana and BSC. Sourced from github.com/binance/binance-skills-hub.
- binance-spotBinance official spot trading skill — place orders, manage accounts, and access real-time market data via Binance Spot API. Sourced from github.com/binance/binance-skills-hub.
- binance-token-auditBinance Web3 official skill — security audit for token contracts, detecting honeypots, rug pulls, and malicious functions across BSC, Base, Solana, and Ethereum. Sourced from github.com/binance/binance-skills-hub.
- binance-token-infoBinance Web3 official skill — search tokens, retrieve metadata, real-time market data, and candlestick charts across BSC, Base, and Solana. Sourced from github.com/binance/binance-skills-hub.
- binance-trading-signalBinance Web3 official skill — Smart Money on-chain trading signals tracking professional investor buy/sell activity on BSC and Solana. Sourced from github.com/binance/binance-skills-hub.