Install
openclaw skills install 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"
openclaw skills install cmc-api-exchangeThis 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
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.