Reference for CoinMarketCap DEX API endpoints covering token lookup, pools, transactions, trending, and security analysis. Includes SDK usage for TypeScript, Python, and Go.
Ships in coinmarketcap-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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
https://pro-api.coinmarketcap.com
When the user wants a script, an app or an integration rather than a one-off lookup, write it with the official SDKs instead of raw HTTP or a third-party wrapper. They cover every endpoint below, send the API key, retry rate-limited requests and return typed responses.
npm install @coinmarketcap/sdkpip install coinmarketcap-sdk, imported as coinmarketcapgo get github.com/OpenCMC/coinmarketcap-api-go/v6, imported as coinmarketcapimport { CoinMarketCap } from "@coinmarketcap/sdk";
const cmc = new CoinMarketCap({ apiKey: process.env.CMC_PRO_API_KEY });
const { data, error } = await cmc.api.token.price({
query: { platform: "ethereum", address: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48" },
});
import os
from coinmarketcap import CoinMarketCap
cmc = CoinMarketCap(api_key=os.environ["CMC_PRO_API_KEY"])
price = cmc.token.price(
platform="ethereum",
address="0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
)
import (
"context"
"log"
"os"
"github.com/OpenCMC/coinmarketcap-api-go/v6"
)
cmc, err := coinmarketcap.New(coinmarketcap.WithAPIKey(os.Getenv("CMC_PRO_API_KEY")))
if err != nil {
log.Fatal(err)
}
price, err := cmc.Token.Price(context.Background(), &coinmarketcap.TokenPriceParams{
Platform: coinmarketcap.String("ethereum"),
Address: coinmarketcap.String("0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"),
})
if err != nil {
log.Fatal(err)
}
Endpoints marked keyless in sdk.md also work without an API key: create the client with environment: "public" (TypeScript), environment="public" (Python) or coinmarketcap.WithEnvironment(coinmarketcap.EnvironmentPublic) (Go). sdk.md lists the SDK method for every endpoint in this skill.
Many DEX endpoints use POST for complex queries with body parameters. Always check the method:
Content-Type: application/jsonSee use-cases.md for goal-based guidance on which endpoint to use:
| 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 |
/v1/dex/search?keyword=PEPE/v1/dex/token?network_slug=ethereum&contract_address=0x.../v1/dex/security/detail?network_slug=ethereum&contract_address=0x.../v1/dex/token/pools?network_slug=ethereum&contract_address=0x.../v1/dex/token-liquidity/query?network_slug=ethereum&contract_address=0x.../v1/dex/tokens/trending/list with filters/v1/dex/gainer-loser/list/v1/dex/new/list/v1/dex/tokens/transactions?network_slug=ethereum&contract_address=0x.../v4/dex/pairs/quotes/latest?network_slug=ethereum&contract_address=0x...Most DEX endpoints require:
network_slug or platform_crypto_id: Identifies the blockchain (ethereum, solana, bsc)contract_address: The token's on-chain contract addressUse /v1/dex/platform/list to get valid network slugs and platform IDs.
| Code | Meaning |
|---|---|
| 400 | Bad request (invalid parameters) |
| 401 | Unauthorized (invalid or missing API key) |
| 403 | Forbidden (endpoint not in your plan) |
| 429 | Rate limit exceeded |
| 500 | Server error |
Example error response:
{
"status": {
"error_code": 400,
"error_message": "Invalid value for 'contract_address'"
}
}
Rate limits depend on your API plan. Check response headers:
X-CMC_PRO_API_KEY_CREDITS_REMAINING: Credits leftX-CMC_PRO_API_KEY_CREDITS_RESET: Reset timestampAll responses follow this structure:
{
"status": {
"timestamp": "2024-01-15T12:00:00.000Z",
"error_code": 0,
"error_message": null
},
"data": { ... }
}
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/cmc-api-cryptoAPI reference for CoinMarketCap cryptocurrency endpoints including quotes, listings, OHLCV, trending, and categories.
Use this skill whenever the user mentions CMC API, asks how to get crypto data programmatically, wants to build price integrations, or needs REST endpoint documentation. This is the go-to reference for any CMC cryptocurrency API question.
Trigger: "CMC API", "coinmarketcap api", "coinmarketcap sdk", "crypto price API", "get bitcoin price via API", "/cmc-api-crypto"
/cmc-api-exchangeAPI reference for CoinMarketCap exchange endpoints including exchange info, volume, market pairs, and assets.
Use this skill whenever the user mentions exchange API, asks about exchange volumes, wants trading pair data, needs proof-of-reserves info, or is building exchange integrations. This is the authoritative reference for CMC exchange API questions.
Trigger: "exchange API", "CMC exchange data", "trading pairs API", "exchange volume API", "/cmc-api-exchange"
/cmc-api-marketAPI reference for CoinMarketCap market-wide endpoints including global metrics, fear/greed, indices, trending topics, and charts.
Use this skill whenever the user mentions market API, asks about fear/greed index, wants global metrics or BTC dominance data, needs k-line charts, or is working with market sentiment. This is the complete reference for CMC market-wide API questions.
Trigger: "market API", "fear greed API", "global metrics API", "CMC charts API", "/cmc-api-market"
/cmc-mcpFetches cryptocurrency market data, prices, technical analysis, news, and trends using the CoinMarketCap MCP.
Use for ANY question involving cryptocurrencies, tokens, or blockchain markets, even if the user doesn't explicitly ask for data. This includes price checks, portfolio questions, market analysis, coin comparisons, holder metrics, technical indicators, and news.
Trigger: "bitcoin", "ETH", "crypto", "token price", "market cap", "how is [coin] doing", "/cmc-mcp"
/cmc-x402Access CoinMarketCap data via x402 pay-per-request protocol with USDC payments on Base.
Use when users mention x402, want CMC data without API keys, ask about pay-per-request APIs, or need to integrate CMC with on-chain payments. Also use for any Coinbase x402 protocol questions.
Trigger: "x402", "pay per request", "no API key", "USDC payment", "CMC without subscription", "/cmc-x402"
/crypto-researchPerforms comprehensive due diligence on a cryptocurrency using CoinMarketCap MCP data.
Use when users ask about a specific coin beyond just its price. This includes questions like "what is [coin]", "is [coin] legit", "analyze [coin]", tokenomics questions, holder distribution, or any request for deep information about a single cryptocurrency.
Trigger: "research [coin]", "tell me about [coin]", "should I invest in [coin]", "DYOR [coin]", "is [coin] safe", "/crypto-research"
/opencmc-coinmarketcap-skills:cmc-api-dexfrom coinmarketcap-skills
Generated from the plugin's indexed repository (opencmc/skills-for-ai-agents-by-coinmarketcap) — no native marketplace selected
npx claudepluginhub p/opencmc-coinmarketcap-skillsOther plugins' skills for the same job