Provides API reference for CoinMarketCap exchange endpoints including exchange info, volume, market pairs, and assets. Useful when building exchange integrations or querying trading pair data.
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 APIs for centralized cryptocurrency exchanges (Binance, Coinbase, Kraken, etc.). Use these endpoints to retrieve exchange metadata, trading volumes, market pairs, and asset holdings.
All requests require an API key in the header.
X-CMC_PRO_API_KEY: your-api-key in all requestscurl -X GET "https://pro-api.coinmarketcap.com/v1/exchange/map" \
-H "X-CMC_PRO_API_KEY: your-api-key"
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.exchange.info({
query: { id: "270" },
});
import os
from coinmarketcap import CoinMarketCap
cmc = CoinMarketCap(api_key=os.environ["CMC_PRO_API_KEY"])
info = cmc.exchange.info(id="270")
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)
}
info, err := cmc.Exchange.Info(context.Background(), &coinmarketcap.ExchangeInfoParams{
ID: coinmarketcap.String("270"),
})
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.
See use-cases.md for goal-based guidance on which endpoint to use:
| Endpoint | Description | Reference |
|---|---|---|
| GET /v1/exchange/map | Map exchange names to CMC IDs | references/info.md |
| GET /v1/exchange/info | Exchange metadata (logo, URLs, description) | references/info.md |
| GET /v1/exchange/listings/latest | List all exchanges with market data | references/listings.md |
| GET /v1/exchange/quotes/latest | Latest exchange volume and metrics | references/quotes.md |
| GET /v1/exchange/quotes/historical | Historical exchange volume data | references/quotes.md |
| GET /v1/exchange/market-pairs/latest | Trading pairs on an exchange | references/market-pairs.md |
| GET /v1/exchange/assets | Assets held by an exchange | references/assets.md |
Why: Most endpoints require CMC exchange IDs, not names. The map endpoint translates human-readable slugs to IDs.
/v1/exchange/map with slug=binance to get the exchange ID/v1/exchange/info with the ID to get full metadataWhy: Volume indicates liquidity and trustworthiness. Higher volume means better price execution and lower slippage.
/v1/exchange/listings/latest to get all exchanges ranked by volumesort=volume_24h and sort_dir=desc for descending orderWhy: Understanding available pairs helps users find where to trade specific assets and compare liquidity across venues.
/v1/exchange/map/v1/exchange/market-pairs/latest with that IDcategory=spot or category=derivatives as neededWhy: Historical volume reveals trends. Declining volume may signal user exodus. Spikes may indicate wash trading or news events.
/v1/exchange/map/v1/exchange/quotes/historical with date range parametersMost endpoints accept these common parameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | CMC exchange ID (comma-separated for multiple) |
| slug | string | Exchange slug (e.g., "binance") |
| convert | string | Currency for price conversion (default: USD) |
| aux | string | Additional fields to include in response |
All responses include a status object:
{
"status": {
"timestamp": "2024-01-15T12:00:00.000Z",
"error_code": 0,
"error_message": null,
"credit_count": 1
},
"data": { }
}
| Code | Meaning |
|---|---|
| 0 | Success |
| 400 | Bad request (invalid parameters) |
| 401 | Unauthorized (invalid API key) |
| 403 | Forbidden (plan limit exceeded) |
| 429 | Rate limit exceeded |
| 500 | Internal server error |
Rate limits depend on your subscription plan. Check the credit_count in responses to track API credit usage. The X-CMC_PRO_API_KEY header must be present on every request.
All responses return JSON with this structure:
{
"status": { },
"data": { }
}
The data field contains either an object (single item) or array (multiple items) depending on the endpoint.
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-dexAPI reference for CoinMarketCap DEX endpoints including token lookup, pools, transactions, trending, and security analysis.
Use this skill whenever the user mentions DEX API, asks about on-chain token data, wants to look up tokens by contract address, needs security/rug risk checks, or is building DEX integrations. This is the definitive reference for CMC DEX API questions.
Trigger: "DEX API", "token by contract address", "CMC security API", "liquidity pool API", "/cmc-api-dex"
/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"
/opencmc-coinmarketcap-skills:cmc-api-exchangefrom 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