Skip to main content

Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent

Workflow preview

Workflow preview
100%
Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Gain full visibility into decentralized exchanges using CoinMarketCap’s DEXScan API—powered by AI. This workflow is part of the CoinMarketCap AI Analyst system and delivers real time and historical...

Best for

  • Crypto Trading automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.executeworkflowtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.toolhttprequest, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Don Jayamaha Jr.

Original n8n.io source

1.1 Workflow description

Title
Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent
Workflow name
Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent

Gain full visibility into decentralized exchanges using CoinMarketCap’s DEXScan API—powered by AI.

This workflow is part of the CoinMarketCap AI Analyst system and delivers real-time and historical insights on spot trading pairs, DEX liquidity, trading activity, and OHLCV data across chains like Ethereum, Polygon, Solana, and more.

Use this workflow as a sub-agent triggered by a parent supervisor workflow, or run it manually with inputs sessionId and message.


🔧 Supported Tools (8 Total)

  1. DEX Metadata → Static info (name, launch date, logo, URLs)
  2. DEX Networks List → All supported DEX chains + network metadata
  3. DEX Listings Quotes → Ranked list of DEXs with live trading volume, market share
  4. DEX Pair Quotes (Latest) → Real-time liquidity, price, and buy/sell stats
  5. DEX OHLCV Historical → Time-series data (daily/hourly/1m)
  6. DEX OHLCV Latest → Today’s price, volume, open/close for pairs
  7. DEX Trades Latest → Up to 100 recent trades for any DEX pair
  8. DEX Spot Pairs Latest → Active token pairs across DEXs + filters (volume, liquidity, volatility)

Agent Architecture

  • AI Model: gpt-4o-mini
  • Context Memory: Window buffer using sessionId
  • Trigger Input: message, sessionId
  • Execution: Via Execute Workflow or parent AI supervisor
  • Design: Tool-based LangChain agent with CMC DEXScan endpoints

💡 Use Cases

🔹 Find top DEXs by 24h volume
🔹 Get spot pairs with highest liquidity on a specific network
🔹 Track historical OHLCV for Uniswap pairs
🔹 View latest trades for SOL/USDC pool
🔹 Analyze tax, pooled % and holders for specific pairs
🔹 Filter pairs by 24h volume, percent change, liquidity, or number of transactions


✅ Example Queries

"Top 5 DEXs by 24h volume on Ethereum"
"Get historical OHLCV for SOL-USDC on Solana"
"Latest trades for a PancakeSwap pair"
"Show all spot pairs with over $500K in liquidity on Polygon"
"Retrieve metadata for Uniswap and SushiSwap"


🛠️ Setup Instructions

  1. Get a CoinMarketCap API Key
  2. Add API Key to Credentials in n8n
    • Use HTTP Header Auth method
  3. Trigger from Parent Workflow (Optional)
    • Use Execute Workflow and pass message and sessionId
  4. Test Prompt Ideas
    • Try: "Compare liquidity of Uniswap and Curve pairs on Ethereum"

Sticky Notes Included

DEXScan Agent Guide – Workflow architecture + supported tools

Usage & API Call Examples – Prompts, test inputs, setup flow

Error Codes + Licensing – 400/401/429/500 troubleshooting, IP rights


✅ Final Notes

This agent is part of the CoinMarketCap AI Analyst System, which includes multiple specialized agents for cryptocurrencies, exchanges, and community data. Visit my Creator profile to find the full suite of tools.


Master DEX analytics with AI—get powerful liquidity, trading, and pair insights in seconds.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When Executed by Another Workflow

Type / Role
n8n-nodes-base.executeWorkflowTrigger - executeWorkflowTrigger
Config choices
Version 1.1

Block 2 - CoinMarketCap DEXScan Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.8

Block 3 - DEXScan Agent Brain

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 4 - DEXScan Agent Memory

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 5 - DEX Metadata

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 6 - DEX Networks List

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 7 - DEX Listings Quotes

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 8 - DEX Pair Quotes Latest

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 9 - DEX OHLCV Historical

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 10 - DEX OHLCV Latest

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 11 - DEX Trades Latest

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 12 - DEX Spot Pairs Latest

Type / Role
@n8n/n8n-nodes-langchain.toolHttpRequest - toolHttpRequest
Config choices
Version 1.1

Block 13 - DEXScan Agent Guide

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 14 - DEX Usage + Examples

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 15 - DEX Errors + IP Notice

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent
Complexity advanced
Nodes 15
Categories Crypto Trading, AI Chatbot
Author Don Jayamaha Jr
Published 03 Apr 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3424/3424.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Analyze DEX liquidity, trades & spot pairs with CoinMarketCap AI agent do?

Gain full visibility into decentralized exchanges using CoinMarketCap’s DEXScan API—powered by AI. This workflow is part of the CoinMarketCap AI Analyst system and delivers real time and historical...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Crypto Trading, AI Chatbot use case.