8
n8n 中文网amn8n.com

使用 CoinGecko 和 Discord 机器人跟踪加密货币市场涨跌榜

高级

这是一个自动化工作流,包含 29 个节点。主要使用 Code, Limit, Merge, Discord, HttpRequest 等节点。 使用 CoinGecko 和 Discord 机器人跟踪加密货币市场涨跌榜

前置要求
  • Discord Bot Token 或 Webhook
  • 可能需要目标 API 的认证凭证

分类

-
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "76f564ce9e1f496ea6c3533f155d5217a31a74b1b62bea30c37742947aa7de7c",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "6961d665-81b9-4df6-8197-4f28967bf5a0",
      "name": "当点击“执行工作流”时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        880,
        3088
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "4d6bb6fa-e190-41ba-bbda-0fbc629aae35",
      "name": "获取第1页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        2560
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "e6547d13-02ac-4823-bae4-d068ac349924",
      "name": "获取第2页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        2736
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "7dc200fa-3ba6-4702-b359-6ebceae0a3b7",
      "name": "获取第3页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        2912
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "2c9ff8a6-497e-4a32-aa31-6456c267821a",
      "name": "前20名涨幅榜",
      "type": "n8n-nodes-base.code",
      "position": [
        2288,
        2976
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "5efb20ee-42a5-44c3-bab7-dbdbc5949409",
      "name": "前20名跌幅榜",
      "type": "n8n-nodes-base.code",
      "position": [
        2288,
        3184
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "b46593bf-91ee-4aee-bd42-dc278a97e434",
      "name": "合并",
      "type": "n8n-nodes-base.merge",
      "position": [
        1952,
        2976
      ],
      "parameters": {},
      "typeVersion": 3.2
    },
    {
      "id": "eba8ee3b-8360-4e5e-99af-43431b30486e",
      "name": "获取第4页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        3088
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "2c056591-da38-41fa-89ff-6129f18a421b",
      "name": "获取第5页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        3248
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "e3dae728-6c3f-4244-a28b-200816690092",
      "name": "获取第6页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        3408
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "a90a8d2c-a29d-4842-be14-d88a05600e06",
      "name": "获取第7页",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1472,
        3568
      ],
      "parameters": {},
      "typeVersion": 4.1
    },
    {
      "id": "428342f8-280e-405f-9869-f93b1fc049cb",
      "name": "限制",
      "type": "n8n-nodes-base.limit",
      "position": [
        3024,
        2976
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "991fb5e0-cf0f-42cf-8381-612357c5f256",
      "name": "限制1",
      "type": "n8n-nodes-base.limit",
      "position": [
        3024,
        3184
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "77c26de1-6cda-4afc-8221-a34b750611b9",
      "name": "24小时跌幅榜",
      "type": "n8n-nodes-base.code",
      "position": [
        3696,
        3168
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "37921f4a-675e-446c-867c-76163279d946",
      "name": "24小时涨幅榜",
      "type": "n8n-nodes-base.code",
      "position": [
        3696,
        2960
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ca8f7fb5-bba1-43f7-a30a-50a0af8c4e44",
      "name": "发送涨幅更新",
      "type": "n8n-nodes-base.discord",
      "position": [
        4480,
        2592
      ],
      "webhookId": "e06bba03-c1aa-4db3-87e3-2111e05fd501",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "32ee4bb1-2038-42b0-b1cd-97ffa0123407",
      "name": "发送跌幅更新",
      "type": "n8n-nodes-base.discord",
      "position": [
        4528,
        3840
      ],
      "webhookId": "e06bba03-c1aa-4db3-87e3-2111e05fd501",
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "ab48a792-0f74-459d-8892-6f0a695f25ec",
      "name": "概述说明",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        224,
        2480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ef051787-695a-45fa-b541-410d91da1868",
      "name": "合并备注",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1760,
        2592
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "da14bf25-0c96-4f42-b448-3df1d94028a7",
      "name": "限制备注",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2896,
        2480
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "1a18df61-fe66-40e7-a984-1bc7b03c188c",
      "name": "发送涨幅备注",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4224,
        1712
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d2ed61cc-14e4-48a6-84aa-d5c518e01fec",
      "name": "发送跌幅备注",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4224,
        2864
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "632181c4-3456-405a-a277-a58de3e286ba",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        2736
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "25461b3c-4764-462d-b8ca-e10265a3ebfe",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1344,
        1776
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "57e05961-ca9a-4271-8c3a-1e16b76e87f5",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2176,
        2336
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "c9f7fd99-a2e7-4d72-92e9-54dc0f744184",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3504,
        1952
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a8196880-e355-4403-b712-3a906ec8f572",
      "name": "计划触发器",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        864,
        3392
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "11599879-2035-481e-b634-613611817553",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        736,
        3248
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f25707df-77c1-4ce5-8bbe-474cfa960ce6",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -16,
        1568
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Limit": {
      "main": [
        [
          {
            "node": "Gainers 24h",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Top 20 Gainers",
            "type": "main",
            "index": 0
          },
          {
            "node": "Top 20 Losers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Limit1": {
      "main": [
        [
          {
            "node": "Losers 24h",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Losers 24h": {
      "main": [
        [
          {
            "node": "Send Losers Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Gainers 24h": {
      "main": [
        [
          {
            "node": "Send Gainers Update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Page 1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Page 2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Fetch Page 3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Fetch Page 4": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 3
          }
        ]
      ]
    },
    "Fetch Page 5": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 4
          }
        ]
      ]
    },
    "Fetch Page 6": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 5
          }
        ]
      ]
    },
    "Fetch Page 7": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 6
          }
        ]
      ]
    },
    "Top 20 Losers": {
      "main": [
        [
          {
            "node": "Limit1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Top 20 Gainers": {
      "main": [
        [
          {
            "node": "Limit",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Fetch Page 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 6",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Fetch Page 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 2",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 3",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 4",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 5",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 6",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Page 7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

高级

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
高级
节点数量29
分类-
节点类型8
难度说明

适合高级用户,包含 16+ 个节点的复杂工作流

外部链接
在 n8n.io 查看

分享此工作流