Cmc Api Dex logo

Cmc Api Dex

Organization
OpenCMC
cmc-api-dex

API 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"

Overview

PublisherOpenCMC
Repositoryskills-for-ai-agents-by-CoinMarketCap
Skill namecmc-api-dex
Stars
76
Forks
21
Bundled files
6
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 6 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by OpenCMC on GitHub. Read the source before you install it.

Installation

Install the Cmc Api Dex AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OpenCMC/skills-for-ai-agents-by-CoinMarketCap/tree/main/skills/cmc-api-dex
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OpenCMC/skills-for-ai-agents-by-CoinMarketCap.git /tmp/skills-for-ai-agents-by-CoinMarketCap
mkdir -p .claude/skills
cp -r /tmp/skills-for-ai-agents-by-CoinMarketCap/skills/cmc-api-dex .claude/skills/cmc-api-dex
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Cmc Api Dex in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Cmc Api Dex on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Cmc Api Dex is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

bash
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

EndpointMethodDescriptionReference
/v1/dex/tokenGETToken details by platform/addresstokens.md
/v1/dex/token/priceGETLatest DEX price for a tokentokens.md
/v1/dex/token/price/batchPOSTBatch token pricestokens.md
/v1/dex/token/poolsGETLiquidity pools for a tokentokens.md
/v1/dex/token-liquidity/queryGETToken liquidity over timetokens.md
/v1/dex/tokens/batch-queryPOSTBatch token metadatatokens.md
/v1/dex/tokens/transactionsGETRecent DEX transactionstokens.md
/v1/dex/tokens/trending/listPOSTTrending DEX tokenstokens.md
/v4/dex/pairs/quotes/latestGETLatest DEX pair quotespairs.md
/v4/dex/spot-pairs/latestGETDEX spot pairs listingpairs.md
/v1/dex/platform/listGETList supported DEX platformsplatforms.md
/v1/dex/platform/detailGETPlatform detailsplatforms.md
/v1/dex/searchGETSearch DEX tokens/pairsplatforms.md
/v1/dex/gainer-loser/listPOSTTop DEX gainers/losersdiscovery.md
/v1/dex/liquidity-change/listGETTokens with liquidity changesdiscovery.md
/v1/dex/meme/listPOSTMeme tokens on DEXdiscovery.md
/v1/dex/new/listPOSTNewly discovered DEX tokensdiscovery.md
/v1/dex/security/detailGETToken security/risk signalssecurity.md

Common Workflows

Get DEX Token Information

  1. Search for token: /v1/dex/search?keyword=PEPE
  2. Get token details: /v1/dex/token?network_slug=ethereum&contract_address=0x...
  3. Check security risks: /v1/dex/security/detail?network_slug=ethereum&contract_address=0x...

Analyze Token Liquidity

  1. Get token pools: /v1/dex/token/pools?network_slug=ethereum&contract_address=0x...
  2. Get liquidity history: /v1/dex/token-liquidity/query?network_slug=ethereum&contract_address=0x...

Find Trending Tokens

  1. Get trending tokens: POST /v1/dex/tokens/trending/list with filters
  2. Get gainers/losers: POST /v1/dex/gainer-loser/list
  3. Find new tokens: POST /v1/dex/new/list

Monitor DEX Activity

  1. Get recent transactions: /v1/dex/tokens/transactions?network_slug=ethereum&contract_address=0x...
  2. Get pair quotes: /v4/dex/pairs/quotes/latest?network_slug=ethereum&contract_address=0x...

Key Parameters

Most DEX endpoints require:

  1. network_slug or platform_crypto_id: Identifies the blockchain (ethereum, solana, bsc)
  2. contract_address: The token's on-chain contract address

Use /v1/dex/platform/list to get valid network slugs and platform IDs.

Error Handling

CodeMeaning
400Bad request (invalid parameters)
401Unauthorized (invalid or missing API key)
403Forbidden (endpoint not in your plan)
429Rate limit exceeded
500Server error

Example error response:

json
{
  "status": {
    "error_code": 400,
    "error_message": "Invalid value for 'contract_address'"
  }
}

Rate Limits

Rate limits depend on your API plan. Check response headers:

  1. X-CMC_PRO_API_KEY_CREDITS_REMAINING: Credits left
  2. X-CMC_PRO_API_KEY_CREDITS_RESET: Reset timestamp

Response Format

All responses follow this structure:

json
{
  "status": {
    "timestamp": "2024-01-15T12:00:00.000Z",
    "error_code": 0,
    "error_message": null
  },
  "data": { ... }
}

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Cmc Api Dex AI skill do?

API 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"

Why use Cmc Api Dex on TypingMind?

Because you install it once and use it with any model. Cmc Api Dex is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Cmc Api Dex in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OpenCMC/skills-for-ai-agents-by-CoinMarketCap/tree/main/skills/cmc-api-dex. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Cmc Api Dex?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Cmc Api Dex?

As many as you like. As long as a model supports skills, you can use Cmc Api Dex with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Cmc Api Dex AI skill free?

Yes. It is published on GitHub by OpenCMC under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇