CoinMarketCap 加密货币代理工具
中级
这是一个Finance, AI领域的自动化工作流,包含 13 个节点。主要使用 Agent, LmChatOpenAi, ExecuteWorkflowTrigger, ToolHttpRequest, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 通过AI驱动的CoinMarketCap代理获取实时加密货币市场数据
前置要求
- •OpenAI API Key
- •可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "R4EuB1gx1IpMXCJM",
"meta": {
"instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
"templateCredsSetupCompleted": true
},
"name": "CoinMarketCap_加密货币代理工具",
"tags": [],
"nodes": [
{
"id": "c055762a-8fe7-4141-a639-df2372f30060",
"name": "当由其他工作流执行时",
"type": "n8n-nodes-base.executeWorkflowTrigger",
"position": [
-240,
260
],
"parameters": {
"workflowInputs": {
"values": [
{
"name": "message"
},
{
"name": "sessionId"
}
]
}
},
"typeVersion": 1.1
},
{
"id": "3638379c-fad2-4d3b-bb90-b32242da4cc7",
"name": "CoinMarketCap 加密货币代理",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
260,
260
],
"parameters": {
"text": "={{ $json.message }}",
"options": {
"systemMessage": "You are an AI cryptocurrency analyst. You have access to six live CoinMarketCap tools, each linked to a real API endpoint. These tools allow you to retrieve price data, metadata, market rankings, conversions, and global market stats.\n\nUse the most relevant tool based on the user’s intent. Below is a list of your currently connected tools, their functions, and accepted input parameters.\n\n---\n\n### 🔧 **Connected Tools & Supported Inputs**\n\n---\n\n#### 1. **Crypto Map**\n- **Endpoint**: `/v1/cryptocurrency/map`\n- **Purpose**: Get CoinMarketCap IDs, symbols, and names.\n- **Supported Inputs**:\n - `symbol` – (Optional) Comma-separated crypto symbols (e.g., BTC,ETH)\n - `listing_status` – `active`, `inactive`, or `untracked`\n - `start` – (Pagination start)\n - `limit` – (Number of results)\n- **Use Cases**:\n - “What is the CoinMarketCap ID for SOL?”\n - “List all active cryptocurrencies.”\n\n---\n\n#### 2. **Crypto Info**\n- **Endpoint**: `/v2/cryptocurrency/info`\n- **Purpose**: Get metadata like description, whitepaper, and social links.\n- **Supported Inputs**:\n - `symbol` – (Required) Comma-separated symbols\n- **Use Cases**:\n - “Show me the whitepaper for ETH.”\n - “What’s the website and Twitter handle of DOGE?”\n\n---\n\n#### 3. **Crypto Listings**\n- **Endpoint**: `/v1/cryptocurrency/listings/latest`\n- **Purpose**: Ranked list of coins sorted by market cap.\n- **Supported Inputs**:\n - `start` – (e.g., 1 for top coin, 101 for rank 101+)\n - `limit` – (e.g., 10 for top 10)\n - `convert` – Currency to convert values into (e.g., USD, EUR)\n- **Use Cases**:\n - “Show me the top 20 coins.”\n - “What are the top 5 coins in EUR?”\n\n---\n\n#### 4. **CoinMarketCap Price**\n- **Endpoint**: `/v2/cryptocurrency/quotes/latest`\n- **Purpose**: Real-time price, volume, and market cap.\n- **Supported Inputs**:\n - `symbol` – (Required) Single or multiple symbols\n - `convert` – Currency to display results in (e.g., USD)\n- **Use Cases**:\n - “What’s the current price of ADA?”\n - “How much volume has BTC traded in the last 24h?”\n\n---\n\n#### 5. **Global Metrics**\n- **Endpoint**: `/v1/global-metrics/quotes/latest`\n- **Purpose**: Global crypto market stats.\n- **Supported Inputs**:\n - *(None required)*\n- **Use Cases**:\n - “What’s the total crypto market cap?”\n - “How dominant is Bitcoin?”\n\n---\n\n#### 6. **Price Conversion**\n- **Endpoint**: `/v1/tools/price-conversion`\n- **Purpose**: Convert one crypto/fiat into another.\n- **Supported Inputs**:\n - `amount` – (Required) Numerical amount to convert\n - `symbol` – (Required) The crypto to convert from\n - `convert` – (Required) The target currency (e.g., BTC, USD)\n- **Use Cases**:\n - “Convert 5 ETH to USD.”\n - “What’s 1000 DOGE in BTC?”\n\n"
},
"promptType": "define"
},
"typeVersion": 1.8
},
{
"id": "52e42df6-6b67-45d6-80a0-5361259a9d8f",
"name": "加密货币代理大脑",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
-300,
520
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini",
"cachedResultName": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "yUizd8t0sD5wMYVG",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "8387d236-2e94-48de-b5b9-0838762440f9",
"name": "加密货币代理记忆",
"type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
"position": [
-120,
520
],
"parameters": {},
"typeVersion": 1.3
},
{
"id": "a48f47a0-9bef-412c-91b8-df57ce3dba12",
"name": "CoinMarketCap 价格",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
600,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v2/cryptocurrency/quotes/latest",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "symbol"
},
{
"name": "convert"
}
]
},
"toolDescription": "The tool going to recieve input of cryptocurrency name and then request the price from CoinMarketCap and send the price back in a message.",
"parametersHeaders": {
"values": [
{
"name": "Accept",
"value": "application/json",
"valueProvider": "fieldValue"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "d5d5e847-efbc-41cd-b581-095eb3825bfd",
"name": "加密货币地图",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
60,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v1/cryptocurrency/map",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "symbol",
"valueProvider": "modelOptional"
},
{
"name": "listing_status",
"valueProvider": "modelOptional"
},
{
"name": "start",
"valueProvider": "modelOptional"
},
{
"name": "limit",
"valueProvider": "modelOptional"
}
]
},
"toolDescription": "Get a map of all cryptocurrencies with CoinMarketCap ID, name, and symbol.",
"parametersHeaders": {
"values": [
{
"name": "Accept"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "ac224086-1243-4dcb-85eb-dbf59fc927ac",
"name": "加密货币信息",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
240,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v2/cryptocurrency/info",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "symbol"
}
]
},
"toolDescription": "Get metadata for one or more cryptocurrencies including logo, description, and links.\n\n",
"parametersHeaders": {
"values": [
{
"name": "Accept"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "b261f3ed-a1dc-4dd0-bc63-31e77041bb01",
"name": "加密货币列表",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
420,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "start"
},
{
"name": "limit"
},
{
"name": "convert"
}
]
},
"toolDescription": "Retrieve a ranked list of cryptocurrencies sorted by market cap. Supports pagination and conversion currency.",
"parametersHeaders": {
"values": [
{
"name": "Accept"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "cfa6badf-0eed-4b37-bb1d-2ffcd39a23fc",
"name": "全球指标",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
800,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v1/global-metrics/quotes/latest",
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"toolDescription": "Returns global crypto market metrics including market cap, 24h volume, BTC dominance, and total active cryptocurrencies.",
"parametersHeaders": {
"values": [
{
"name": "Accept"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "ca40fc60-8cdd-48ec-98ba-63259582a16e",
"name": "价格转换",
"type": "@n8n/n8n-nodes-langchain.toolHttpRequest",
"position": [
1000,
520
],
"parameters": {
"url": "https://pro-api.coinmarketcap.com/v1/tools/price-conversion",
"sendQuery": true,
"sendHeaders": true,
"authentication": "genericCredentialType",
"genericAuthType": "httpHeaderAuth",
"parametersQuery": {
"values": [
{
"name": "amount"
},
{
"name": "symbol"
},
{
"name": "convert"
}
]
},
"toolDescription": "Convert cryptocurrency or fiat value from one currency to another.",
"parametersHeaders": {
"values": [
{
"name": "Accept"
}
]
}
},
"credentials": {
"httpHeaderAuth": {
"id": "OKXROn8aWkgAOvvV",
"name": "CoinMarketCap Standard"
}
},
"typeVersion": 1.1
},
{
"id": "360bb74c-0ca6-4cd7-95ab-7f14a2c89e6c",
"name": "加密货币代理指南",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1140,
-760
],
"parameters": {
"width": 840,
"height": 840,
"content": "# 🧠 CoinMarketCap_加密货币代理工具指南"
},
"typeVersion": 1
},
{
"id": "f2f24886-4157-40f5-9731-dea431fb6cb8",
"name": "使用方法和示例",
"type": "n8n-nodes-base.stickyNote",
"position": [
-120,
-760
],
"parameters": {
"color": 5,
"width": 720,
"height": 900,
"content": "## 📌 使用说明"
},
"typeVersion": 1
},
{
"id": "06d501a6-8730-4093-a145-53fd9378fa8e",
"name": "错误和许可",
"type": "n8n-nodes-base.stickyNote",
"position": [
780,
-760
],
"parameters": {
"color": 3,
"width": 600,
"height": 560,
"content": "## ⚠️ API错误和故障排除"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "a6a08338-6720-4a3a-bf3b-ed9559257b10",
"connections": {
"Crypto Map": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Crypto Info": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Global Metrics": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Crypto Listings": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Price Conversion": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Crypto Agent Brain": {
"ai_languageModel": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"CoinMarketCap Price": {
"ai_tool": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_tool",
"index": 0
}
]
]
},
"Crypto Agent Memory": {
"ai_memory": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "ai_memory",
"index": 0
}
]
]
},
"When Executed by Another Workflow": {
"main": [
[
{
"node": "CoinMarketCap Crypto Agent",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 财务, 人工智能
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
CoinMarketCap_DEX扫描_代理_工具
使用CoinMarketCap AI代理分析DEX流动性、交易和现货对
Agent
Lm Chat Open Ai
Execute Workflow Trigger
+3
15 节点Don Jayamaha Jr
财务
币安价格-24小时统计-订单簿-K线工具
币安价格-24小时统计-订单簿-K线工具
Agent
Lm Chat Open Ai
Execute Workflow Trigger
+3
17 节点Don Jayamaha Jr
财务
CoinMarketCap 交易所和社区代理工具
使用 CoinMarketCap AI 代理获取交易所和情绪洞察
Agent
Lm Chat Open Ai
Execute Workflow Trigger
+3
12 节点Don Jayamaha Jr
财务
特斯拉1小时和1日K线工具 n8n
特斯拉1小时和1日K线工具(K线和成交量AI模式检测)
Agent
Lm Chat Open Ai
Execute Workflow Trigger
+3
13 节点Don Jayamaha Jr
财务
Binance SM 15分钟指标工具
Binance SM 15分钟指标工具
Agent
Http Request Tool
Lm Chat Open Ai
+3
11 节点Don Jayamaha Jr
财务
Binance SM 1日指标工具
Binance SM 1日指标工具
Agent
Http Request Tool
Lm Chat Open Ai
+3
11 节点Don Jayamaha Jr
财务
工作流信息
难度等级
中级
节点数量13
分类2
节点类型6
作者
Don Jayamaha Jr
@don-the-gem-dealerWith 12 years of experience as a Blockchain Strategist and Web3 Architect, I specialize in bridging the gap between traditional industries and decentralized technologies. My expertise spans tokenized assets, crypto payment integrations, and blockchain-driven market solutions.
外部链接
在 n8n.io 查看 →
分享此工作流