agentleFS
TermiX-officialTermiX-official/cryptoclaw/skills/coingecko/SKILL.md

coingecko

Skill100 starsChanged 9 months agoMITView on GitHub

Query CoinGecko API for prices, market data, trending tokens, and historical charts.

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No API key required. Rate limit: ~30 calls/minute.

    line 17
  2. Very specific:

    Always use curl -s to fetch, then parse the JSON response

    line 111

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

TokenCoinGecko ID
BTCbitcoin
ETHethereum
BNBbinancecoin
SOLsolana
USDTtether
USDCusd-coin
XRPripple
ADAcardano
DOGEdogecoin
AVAXavalanche-2
DOTpolkadot
MATICmatic-network
LINKchainlink
UNIuniswap
CAKEpancakeswap-token
ARBarbitrum
OPoptimism
AAVEaave
LDOlido-dao
SHIBshiba-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"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.