cmc-api-crypto

cmc-api-crypto is a skill for Claude Code from OpenCMC/skills-for-ai-agents-by-CoinMarketCap. It costs 105 tokens per session (1,611 once invoked), scanned A, original, MIT.

A reference for the CoinMarketCap cryptocurrency API, a web service that provides coin prices, market listings, history, and token information. It covers the API endpoints and required-key authentication.

In plain words
What is it for?
Use it to retrieve current or historical prices, market listings, OHLCV chart data, trending coins, categories, token details, exchange listings, and related market information.
Why use it?
It helps developers choose the right endpoint and request format instead of working out the cryptocurrency data interface from scratch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to retrieve current or historical prices, market listings, OHLCV chart data, trending coins, categories, token details, exchange listings, and related market information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OpenCMC/skills-for-ai-agents-by-CoinMarketCap --skill cmc-api-crypto
Clone the repo
git clone --depth 1 https://github.com/OpenCMC/skills-for-ai-agents-by-CoinMarketCap

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cmc-api-crypto

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto/github.svg)](https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto)
Your own site
<a href="https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto"><img src="https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cmc-api-crypto

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto"><img src="https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-crypto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,611 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.01611
Opus 5 $0.00053 $0.00805
Sonnet 5 $0.00021 $0.00322
Haiku 4.5 $0.00011 $0.00161

Measured 12d ago against content hash e0875a8044f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

cmc-api-crypto scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X GET "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest" \
skills/cmc-api-crypto/SKILL.md · 170 lines

How it starts

The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CoinMarketCap Cryptocurrency API

This skill covers the CoinMarketCap Cryptocurrency API endpoints for retrieving price data, market listings, historical quotes, trending coins, and token metadata.

Authentication

All requests require an API key in the header.

curl -X GET "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest" \
  -H "X-CMC_PRO_API_KEY: your-api-key"

Get your API key at: https://pro.coinmarketcap.com/login

Base URL

https://pro-api.coinmarketcap.com

Common Use Cases

See use-cases.md for goal-based guidance on which endpoint to use:

  1. Get current price of a token
  2. Find a token's CMC ID from symbol or name
  3. Get a token by contract address
  4. Get top 100 coins by market cap
  5. Find coins in a price range
  6. Get historical price at a specific date
  7. Build a price chart (OHLCV data)
  8. Find where a coin trades
  9. Get all-time high and distance from ATH
  10. Find today's biggest gainers
  11. Discover newly listed coins
  12. Get all tokens in a category (e.g., DeFi)

API Overview

Endpoint Description Reference
GET /v1/cryptocurrency/categories List all categories with market metrics categories.md
GET /v1/cryptocurrency/category Single category details categories.md
GET /v1/cryptocurrency/listings/historical Historical listings snapshot listings.md
GET /v1/cryptocurrency/listings/latest Current listings with market data listings.md
GET /v1/cryptocurrency/listings/new Newly added cryptocurrencies listings.md
GET /v1/cryptocurrency/map Map names/symbols to CMC IDs map.md
GET /v1/cryptocurrency/trending/gainers-losers Top gainers and losers trending.md
GET /v1/cryptocurrency/trending/latest Currently trending coins trending.md
GET /v1/cryptocurrency/trending/most-visited Most visited on CMC trending.md
GET /v2/cryptocurrency/info Static metadata (logo, description, URLs) info.md
GET /v2/cryptocurrency/market-pairs/latest Trading pairs for a coin market-pairs.md
GET /v2/cryptocurrency/ohlcv/historical Historical OHLCV candles ohlcv.md
GET /v2/cryptocurrency/ohlcv/latest Latest OHLCV data ohlcv.md
GET /v2/cryptocurrency/price-performance-stats/latest Price performance stats price-performance.md
GET /v2/cryptocurrency/quotes/latest Latest price quotes quotes.md
GET /v3/cryptocurrency/quotes/historical Historical price quotes quotes.md

Read the full file on GitHub · 170 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 170 lines · 105 tokens per session scan A e0875a8044f4

Subscribe to this mod's changes

cmc-api-crypto is a skill published in the GitHub repository OpenCMC/skills-for-ai-agents-by-CoinMarketCap (67 stars, last pushed 6mo ago), licensed MIT. It adds 105 tokens to every session and 1,611 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.