ChatGPTMoneyLower billsAI score · 81/100AI-assisted edit · no obvious prompt-injection riskn8n.io

Build a DEX Liquidity & Trading-Pair AI Agent with n8n + CoinMarketCap DEXScan API

Input: CMC API key + n8n instance; Process: import template, configure credentials and agent node; Output: an AI agent workflow that queries DEX liquidity, pair quotes, OHLCV and latest trades

Some experienceStepsWorkflowPromptTip
Who
Crypto analysts or quant researchers with an n8n instance who need multi-chain DEX data
You get
An AI sub-workflow that answers natural-language queries about DEX liquidity, pair quotes, historical OHLCV and recent trades
You need
n8n

Constraints

Requires an n8n instance (self-hosted or cloud), a CoinMarketCap Pro API key (free tier available), and an OpenAI API key for GPT-4o mini. The workflow can be triggered manually with sessionId and message, or called as a sub-agent by a parent workflow via Execute Workflow. CMC API uses HTTP Header Auth.

What they did

Author don-the-gem-dealer published a CoinMarketCap DEXScan AI agent template on n8n with 15 nodes: one Execute Workflow Trigger, one AI Agent (GPT-4o mini), one Window Buffer Memory, and eight HTTP Request Tool nodes mapped to CMC DEXScan endpoints. The agent interprets natural-language queries, selects the right tool, and calls the CMC API to return DEX liquidity, pair quotes, OHLCV or trade data.

How it went

The author states the workflow delivers real-time and historical DEX insights across Ethereum, Polygon, Solana and more, and lists five example queries (e.g. 'Top 5 DEXs by 24h volume on Ethereum'). The template shows as published in the n8n library with 6674 views at time of collection. These are author claims; not verified by this site.

Worth knowing

1. Requires a CoinMarketCap Pro API key (free tier has limits). 2. The credential-id in workflow.json is a placeholder and must be replaced with real credentials. 3. CMC API has rate limits (429); high-frequency queries need care. 4. Large OHLCV responses may exceed GPT-4o mini context window. 5. Do not use convert and convert_id together. 6. IP rights to the workflow architecture are claimed by Treasurium Capital Limited Company; unauthorized redistribution is prohibited. 7. This site has not tested the template; actual usability depends on current CMC API status and n8n node version compatibility.

Steps

  1. Obtain and configure API credentials

    Sign up for a CoinMarketCap Pro API key. Create an HTTP Header Auth credential in n8n and paste the CMC key. Ensure an OpenAI API credential is also configured for the GPT-4o mini language model.

  2. Import the workflow template and configure the agent node

    Import this workflow from the n8n template library (or via workflow.json). Inspect the 'CoinMarketCap DEXScan Agent' node to verify its systemMessage contains the full tool descriptions and 400-error prevention rules. Bind each HTTP Tool node to the HTTP Header Auth credential created in step 1.

  3. Trigger execution and query

    Run manually by passing JSON input {"sessionId": "any-session-id", "message": "your natural-language query"}. Or trigger from a parent workflow via Execute Workflow node, forwarding message and sessionId. The agent routes the query to the appropriate CMC DEXScan tool automatically.

    Execution prompt · Source text。Passed in by the parent AI agent workflow that calls this sub-workflow

    Show all spot pairs with over $500K in liquidity on Polygon

Prompt you can copy

Execution prompt · Source text。Passed in by the parent AI agent workflow that calls this sub-workflow

This block is the prompt. Ads are never placed here.

Get historical OHLCV for SOL-USDC on Solana

This prompt starts the setup conversation, not the node runtime instruction. Actual agent behavior is defined by the systemMessage inside workflow.json.

Source

Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent · don-the-gem-dealer · n8n.io · 2025-04-03T13:41:05.768Z

Comments & feedback

Tried this method? Share results, problems or improvements. Comments appear after moderation. Please avoid sensitive information.

Loading…

    Related