cmc-api-dex

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

A reference guide for CoinMarketCap’s DEX APIs, which provide data from decentralized exchanges such as Uniswap, PancakeSwap, and Raydium. It covers token, pool, transaction, trending, price, and security data using an API key.

In plain words
What is it for?
Use it to look up tokens by contract address, retrieve prices and transactions, find pools and trending tokens, and check for possible rug-pull risks.
Why use it?
It explains which endpoint and request method to use when working with on-chain exchange data. This avoids guessing how to query tokens, liquidity pools, or security information.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to look up tokens by contract address, retrieve prices and transactions, find pools and trending tokens, and check for possible rug-pull risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex
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-dex
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-dex

README.md
[![agentmods](https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex/github.svg)](https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex)
Your own site
<a href="https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex"><img src="https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex/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-dex

Your own site · 80×15
<a href="https://agentmods.dev/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex"><img src="https://agentmods.dev/badge/skills/opencmc/skills-for-ai-agents-by-coinmarketcap/cmc-api-dex.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,574 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.00114 $0.01574
Opus 5 $0.00057 $0.00787
Sonnet 5 $0.00023 $0.00315
Haiku 4.5 $0.00011 $0.00157

Measured 12d ago against content hash 44f1fe74830e, 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-dex 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/dex/platform/list" \
skills/cmc-api-dex/SKILL.md · 156 lines

How it starts

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

CoinMarketCap DEX API

This skill covers CoinMarketCap's DEX (Decentralized Exchange) APIs for on-chain token data. Unlike CEX endpoints, these APIs fetch data directly from blockchain DEXs like Uniswap, PancakeSwap, and Raydium.

Authentication

All requests require an API key in the header:

curl -X GET "https://pro-api.coinmarketcap.com/v1/dex/platform/list" \
  -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

POST vs GET Endpoints

Many DEX endpoints use POST for complex queries with body parameters. Always check the method:

  1. GET endpoints pass parameters as query strings
  2. POST endpoints pass parameters in JSON body with Content-Type: application/json

Common Use Cases

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

  1. Get DEX token price by contract address
  2. Find a token's contract address by name
  3. Get prices for multiple tokens at once
  4. Check token security before trading
  5. Find liquidity pools for a token
  6. Find trending DEX tokens
  7. Find today's biggest DEX gainers
  8. Find newly launched tokens
  9. Detect potential rug pulls (liquidity removal)
  10. Get recent trades for a token
  11. Get supported networks and DEXs
  12. Get meme coins

API Overview

Endpoint Method Description Reference
/v1/dex/token GET Token details by platform/address tokens.md
/v1/dex/token/price GET Latest DEX price for a token tokens.md
/v1/dex/token/price/batch POST Batch token prices tokens.md
/v1/dex/token/pools GET Liquidity pools for a token tokens.md
/v1/dex/token-liquidity/query GET Token liquidity over time tokens.md
/v1/dex/tokens/batch-query POST Batch token metadata tokens.md
/v1/dex/tokens/transactions GET Recent DEX transactions tokens.md
/v1/dex/tokens/trending/list POST Trending DEX tokens tokens.md
/v4/dex/pairs/quotes/latest GET Latest DEX pair quotes pairs.md
/v4/dex/spot-pairs/latest GET DEX spot pairs listing pairs.md
/v1/dex/platform/list GET List supported DEX platforms platforms.md
/v1/dex/platform/detail GET Platform details platforms.md
/v1/dex/search GET Search DEX tokens/pairs platforms.md
/v1/dex/gainer-loser/list POST Top DEX gainers/losers discovery.md
/v1/dex/liquidity-change/list GET Tokens with liquidity changes discovery.md
/v1/dex/meme/list POST Meme tokens on DEX discovery.md
/v1/dex/new/list POST Newly discovered DEX tokens discovery.md
/v1/dex/security/detail GET Token security/risk signals security.md

Read the full file on GitHub · 156 lines

Files

What ships with it

6 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 · 156 lines · 114 tokens per session scan A 44f1fe74830e

Subscribe to this mod's changes

cmc-api-dex 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 114 tokens to every session and 1,574 once invoked, about $0.0006 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.