API Integration Skills
Exchange API
GitHub repo: coinmarketcap-official/skills-for-ai-agents-by-CoinMarketCap
APIs for centralized cryptocurrency exchanges (Binance, Coinbase, Kraken, etc.) including metadata, trading volumes, market pairs, and asset holdings.
Authentication
Code
Get your API key at https://pro.coinmarketcap.com/login
Base URL: https://pro-api.coinmarketcap.com
API Overview
| Endpoint | Description |
|---|---|
| GET /v1/exchange/map | Map exchange names to CMC IDs |
| GET /v1/exchange/info | Exchange metadata (logo, URLs, description) |
| GET /v1/exchange/listings/latest | List all exchanges with market data |
| GET /v1/exchange/quotes/latest | Latest exchange volume and metrics |
| GET /v1/exchange/quotes/historical | Historical exchange volume data |
| GET /v1/exchange/market-pairs/latest | Trading pairs on an exchange |
| GET /v1/exchange/assets | Assets held by an exchange |
Common Workflows
Get Exchange Information
- Call
/v1/exchange/mapwithslug=binanceto get the exchange ID - Call
/v1/exchange/infowith the ID to get full metadata
Compare Exchange Volumes
- Call
/v1/exchange/listings/latestto get all exchanges ranked by volume - Use
sort=volume_24handsort_dir=descfor descending order
Analyze Trading Pairs
- Get the exchange ID from
/v1/exchange/map - Call
/v1/exchange/market-pairs/latestwith that ID - Filter by
category=spotorcategory=derivatives
Track Volume History
- Get the exchange ID from
/v1/exchange/map - Call
/v1/exchange/quotes/historicalwith date range parameters
Query 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 |
Common Use Cases
- Get exchange information by name
- Find an exchange's CMC ID
- Get top exchanges by volume
- Get only spot or derivatives exchanges
- Get current volume for a specific exchange
- Compare volume across multiple exchanges
- Get historical volume for an exchange
- Get all trading pairs on an exchange
- Find BTC pairs on an exchange
- Get perpetual/futures pairs on an exchange
- Check exchange reserves (proof-of-reserves)
- Find exchanges that list a specific coin