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)
DEX Metadata → Static info (name, launch date, logo, URLs)
DEX Networks List → All supported DEX chains + network metadata
DEX Listings Quotes → Ranked list of DEXs with live trading volume, market share
DEX Pair Quotes (Latest) → Real-time liquidity, price, and buy/sell stats
DEX OHLCV Historical → Time-series data (daily/hourly/1m)
DEX OHLCV Latest → Today’s price, volume, open/close for pairs
DEX Trades Latest → Up to 100 recent trades for any DEX pair
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
Get a CoinMarketCap API Key
Sign up at: https://coinmarketcap.com/api/
Add API Key to Credentials in n8n
Use HTTP Header Auth method
Trigger from Parent Workflow (Optional)
Use Execute Workflow and pass message and sessionId
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.
Related Templates
Get Airtable data via AI and Obsidian Notes
I am submitting this workflow for the Obsidian community to showcase the potential of integrating Obsidian with n8n. Whi...
Task Deadline Reminders with Google Sheets, ChatGPT, and Gmail
Intro This template is for project managers, team leads, or anyone who wants to automatically remind teammates of tasks ...
Use OpenRouter in n8n versions <1.78
What it is: In version 1.78, n8n introduced a dedicated node to use the OpenRouter service, which lets you to use a lot...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments