CoinMarketCap_DEXScan_Agent_Tool
Configured with Agent, Execute Workflow Trigger, OpenAI Chat Model, Memory Buffer Window, and additional nodes. Review the connections and setup before adapting this template.
Node categories in this workflow
- Trigger
- AI & models
- Data store
- Web / API
Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.
Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.
How it works
The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.
| Node | Category | Type | Operation |
|---|---|---|---|
| When Executed by Another Workflow | Trigger | Execute Workflow Trigger | See node parameters |
| CoinMarketCap DEXScan Agent | AI & models | Agent | See node parameters |
| DEXScan Agent Brain | AI & models | OpenAI Chat Model | See node parameters |
| DEXScan Agent Memory | Data store | Memory Buffer Window | See node parameters |
| DEX Metadata | Web / API | Tool Http Request | See node parameters |
| DEX Networks List | Web / API | Tool Http Request | See node parameters |
| DEX Listings Quotes | Web / API | Tool Http Request | See node parameters |
| DEX Pair Quotes Latest | Web / API | Tool Http Request | See node parameters |
| DEX OHLCV Historical | Web / API | Tool Http Request | See node parameters |
| DEX OHLCV Latest | Web / API | Tool Http Request | See node parameters |
| DEX Trades Latest | Web / API | Tool Http Request | See node parameters |
| DEX Spot Pairs Latest | Web / API | Tool Http Request | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.
Requirements
An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.
Credential types declared in the source
httpHeaderAuthopenAiApi
Workflow notes
📊 CoinMarketCap DEXScan AI Agent Tool (n8n Workflow)
📊 CoinMarketCap DEXScan AI Agent Tool (n8n Workflow)
🧠 Multi-Agent System: DEXScan Agent
This workflow powers DEX intelligence capabilities in the CoinMarketCap AI Analyst ecosystem. It enables deep insights into liquidity, volume, spot pairs, and trading activity across decentralized exchanges.
🔧 Connected DEX Tools:
- DEX Metadata –
/v4/dex/listings/info - DEX Networks List –
/v4/dex/networks/list - DEX Listings Quotes –
/v4/dex/listings/quotes - DEX Pair Quotes Latest –
/v4/dex/pairs/quotes/latest - DEX OHLCV Historical –
/v4/dex/pairs/ohlcv/historical - DEX OHLCV Latest –
/v4/dex/pairs/ohlcv/latest - DEX Trades Latest –
/v4/dex/pairs/trade/latest - DEX Spot Pairs Latest –
/v4/dex/spot-pairs/latest
✅ Key Capabilities:
- View real-time DEX liquidity and 24h trading volume
- Retrieve metadata (logos, URLs, launch info) for decentralized exchanges
- Track market pair quotes, liquidity, and spot pair data
- Monitor historical OHLCV data for technical analysis
- Identify recent trades and pair-specific activity
🧠 Agent Structure
1️⃣ DEXScan Brain
- Type: GPT-4o Mini
- Function: Understands queries, routes tools, summarizes results
2️⃣ Session Memory
- Maintains contextual state via memory buffer
3️⃣ Tool Triggers
- HTTP Tools: Each CMC endpoint is mapped to one of 8 tool nodes with rich parameter control
⚠️ Notes:
- Use
contract_address,network_slug, ornetwork_idin nearly all endpoints - Avoid using both
convertandconvert_idin the same query - Be cautious of high-volume requests which may exceed token limits (e.g., when requesting OHLCV for many intervals)
📎 API responses are designed for fine-tuned filtering. You can retrieve:
- Top trading pairs on Polygon
- Volume-based DEX rankings
- Historical trade data for a Uniswap pair
- Real-time liquidity on Solana spot pairs
📌 How to Use the Workflow
📌 How to Use the Workflow
✅ Step 1: Provide Inputs
Use contract_address, network_slug, dex_slug, or convert_id as needed
✅ Step 2: Trigger From Supervisor Agent
Parent agent forwards user message and sessionId to DEXScan
✅ Step 3: DEX Data is Returned
Data can be streamed to Telegram, dashboards, or HTTP response
🔍 Example API Calls
1️⃣ Get Top DEXs by 24h Volume
GET /v4/dex/listings/quotes?sort=volume_24h&limit=5
2️⃣ Query Historical OHLCV for SOL-USDT
GET /v4/dex/pairs/ohlcv/historical?network=solana&pair=SOL-USDT&interval=1d
3️⃣ Latest Trades on a Uniswap Pair
GET /v4/dex/pairs/trade/latest?contract_address=0x...&network_slug=ethereum
4️⃣ Spot Pairs on Polygon
GET /v4/dex/spot-pairs/latest?network_slug=polygon&sort=volume_24h
5️⃣ DEX Metadata for PancakeSwap
GET /v4/dex/listings/info?id=123&aux=logo,description,date_launched
⚠️ DEXScan Error Codes & Fixes
⚠️ DEXScan Error Codes & Fixes
| Code | Message |
|------|---------|
| 200 | Success |
| 400 | Bad Request – missing/invalid query |
| 401 | Unauthorized – invalid API key |
| 429 | Rate limit exceeded |
| 500 | Server error |
🔍 Fixes:
- Always use at least 1 required param:
contract_address,network_slug, etc. - Double-check slugs and convert ID formats
- Don’t mix
convertandconvert_id - Avoid oversized
auxandintervalcombinations
🚀 Support & Licensing
🔗 Don Jayamaha – LinkedIn
http://linkedin.com/in/donjayamahajr
© 2025 Treasurium Capital Limited Company. All rights reserved. This AI workflow architecture, including logic, design, and prompt structures, is the intellectual property of Treasurium Capital Limited Company. Unauthorized reproduction, redistribution, or resale is prohibited under U.S. copyright law. Licensed use only.
CoinMarketCap_DEXScan_Agent_Tool
CoinMarketCap_DEXScan_Agent_Tool
Purpose and structure
This folder contains the CoinMarketCap_DEXScan_Agent_Tool workflow. Its executable nodes use agent, executeWorkflowTrigger, lmChatOpenAi, memoryBufferWindow, toolHttpRequest. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.
Setup
Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.
Entry points
When Executed by Another Workflow
Verification
Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.
Attribution
https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Stickynote/1507_Stickynote_Executeworkflow_Automation_Webhook.json MIT; preserve source notices.