8
n8n 中文网amn8n.com

Binance 现货市场金融分析师工具

高级

这是一个Finance, AI领域的自动化工作流,包含 19 个节点。主要使用 Agent, LmChatOpenAi, ToolWorkflow, ExecuteWorkflowTrigger, MemoryBufferWindow 等节点,结合人工智能技术实现智能自动化。 通过 Telegram 和 GPT-4o 获取 Binance 现货市场金融分析

前置要求
  • OpenAI API Key
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "Nm41n4i6VMhrixZs",
  "meta": {
    "instanceId": "a5283507e1917a33cc3ae615b2e7d5ad2c1e50955e6f831272ddd5ab816f3fb6",
    "templateCredsSetupCompleted": true
  },
  "name": "Binance 现货市场金融分析师工具",
  "tags": [],
  "nodes": [
    {
      "id": "76944051-b8a4-4619-a307-3467e545c2d0",
      "name": "当由另一个工作流执行时",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -640,
        -100
      ],
      "parameters": {
        "workflowInputs": {
          "values": [
            {
              "name": "message"
            },
            {
              "name": "sessionId"
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "035ef2de-8f55-4d8e-96fb-17ecefc835b9",
      "name": "OpenAI 聊天模型",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -920,
        240
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4.1-mini",
          "cachedResultName": "gpt-4.1-mini"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "id": "yUizd8t0sD5wMYVG",
          "name": "OpenAi account"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "8a658740-f8c3-44e2-ae3a-974bf5baec55",
      "name": "简单内存",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -660,
        240
      ],
      "parameters": {},
      "typeVersion": 1.3
    },
    {
      "id": "ab7672db-5912-4ed5-b9cc-8a64195fb4f1",
      "name": "Binance 现货市场金融分析师代理",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -200,
        -100
      ],
      "parameters": {
        "text": "={{ $json.message }}",
        "options": {
          "systemMessage": "You are the **Binance Spot Market Financial Analyst AI Agent**, tasked with interpreting natural-language trading queries and generating **multi-timeframe, indicator-driven market analysis** for any Binance spot symbol.\n\nYour core responsibility is to orchestrate real-time price tools and technical indicator sub-agents to **diagnose trend conditions, volatility shifts, and market momentum**, and return a structured report formatted for Telegram.\n\n---\n\n### 🔗 Connected Tools & Agents\n\n#### 1. **Price & Market Structure Tool**\n\nWorkflow: `Binance SM Price-24hrStats-OrderBook-Kline Tool`\nReturns:\n\n* `getCurrentPrice`\n* `get24hrStats`\n* `getOrderBook`\n* `getKlines`\n  Input:\n\n```json\n{\n  \"message\": \"<SYMBOL>\",\n  \"sessionId\": \"<Telegram Chat ID>\"\n}\n```\n\n#### 2. **Timeframe-Based Technical Indicator Agents**\n\nEach uses the latest Binance kline data (limit: 40) to calculate:\n\n* **RSI** (14)\n* **MACD** (12/26/9)\n* **Bollinger Bands** (20/2)\n* **SMA / EMA** (20)\n* **ADX** (+DI, −DI, 14)\n\nAgents:\n\n* `Binance SM 15min Indicators Agent`\n* `Binance SM 1hour Indicators Agent`\n* `Binance SM 4hour Indicators Agent`\n* `Binance SM 1day Indicators Agent`\n\nInput to each agent:\n\n```json\n{\n  \"message\": \"<SYMBOL>\",\n  \"sessionId\": \"<Telegram Chat ID>\"\n}\n```\n\n---\n\n### 🧠 Decision Engine & Routing Logic\n\nYou must:\n\n* Extract the **symbol** and **implied timeframe** from the user query.\n* If no timeframe is given, default to:\n\n  * **Short-Term**: 15m + 1h\n  * **Mid-Term**: 1h + 4h\n  * **Long-Term**: 1d + 4h\n* Route data requests in parallel across tools\n* Merge raw metrics into a final structured insight\n\n---\n\n### 📤 Telegram Output Template\n\nReturn your final result in this format:\n\n```\n📊 <SYMBOL> Market Snapshot\n\n💰 Price: $63,220  \n📈 24h Change: +2.3%  \n📊 Volume: 45,210 BTC\n\n🧪 Technical Summary:\n• 1h RSI: 68 (Bullish)  \n• MACD: Crossover Up  \n• BB Width: Narrowing (Possible Breakout)  \n• ADX: 32 (Strong Trend)  \n\n📉 Support: $61,900  \n📈 Resistance: $63,800\n```\n\n---\n\n### ✅ Input Handling Notes\n\n* Input: Human questions like \"How’s BTC doing today?\" or \"Is SOL bullish in the 4h chart?\"\n* If timeframe is missing, **infer intent**\n* If symbol is missing, prompt: “Which token would you like me to analyze?”\n* All agents and tools **must return cleaned JSON**, avoid raw API output"
        },
        "promptType": "define"
      },
      "typeVersion": 2
    },
    {
      "id": "f12e6672-bcb5-44af-b7d7-250437d8ba7c",
      "name": "Binance 现货市场价格-24小时统计-订单簿-K线代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -400,
        220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "xAa5vBxhQzEWWFJM",
          "cachedResultName": "Work Drive — Binance SM Price-24hrStats-OrderBook-Kline Tool"
        },
        "description": "此工具是一个委托的子代理工作流,响应上游 AI 推理,提供来自 Binance 现货市场的低级市场数据。它被更高级别的代理(例如金融分析师代理)用来检索任何加密货币交易对的结构化金融指标和价格数据。",
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "35936a8a-1bf6-4bfb-8ad7-1d192e6cf655",
      "name": "Binance 现货市场 15 分钟指标代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        -120,
        220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "INYtgCEbxdGBDivU",
          "cachedResultName": "Work Drive — Binance SM 15min Indicators Tool"
        },
        "description": "这是一个针对 Binance 现货市场交易对的 15 分钟间隔技术指标代理。它提供 AI 驱动的对基于最新 15 分钟 K 线数据计算出的实时技术信号的访问。设计用于更大的金融分析工作流中,此工具有助于检测短期动量变化和交易信号。",
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "3c15aea8-475e-42e0-b8f7-2295a176e386",
      "name": "Binance 现货市场 1 小时指标代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        100,
        220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "eXDMxZUrE0tIPcR9",
          "cachedResultName": "Work Drive — Binance SM 1hour Indicators Tool"
        },
        "description": "此代理负责分析 Binance 现货市场交易对的 1 小时间隔技术指标。它用于基于趋势强度和波动性检测中等范围的市场动量和潜在的入场/出场信号。",
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "b2feb013-9d16-4838-bfb5-2035ceb70790",
      "name": "Binance 现货市场 4 小时指标代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        340,
        220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "6U56ifHxnha9rf2n",
          "cachedResultName": "Work Drive — Binance SM 4hour Indicators Tool"
        },
        "description": "此代理专注于检索和分析 Binance 现货市场交易对的 4 小时时间框架技术指标。它提供了趋势强度、波动性和动量变化的中期视图——非常适合波段交易分析和宏观层面设置。",
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "248d63c7-0b95-4f50-acb0-ed2c58dfb4e9",
      "name": "Binance 现货市场 1 天指标代理",
      "type": "@n8n/n8n-nodes-langchain.toolWorkflow",
      "position": [
        600,
        220
      ],
      "parameters": {
        "workflowId": {
          "__rl": true,
          "mode": "list",
          "value": "tZtQVd3nbDgZ1DTZ",
          "cachedResultName": "Work Drive — Binance SM 1day Indicators Tool"
        },
        "workflowInputs": {
          "value": {
            "message": "={{ $fromAI(\"message\",\"Populate this with a relevant message to this subagent\")}}",
            "sessionId": "={{ $json.sessionId }}"
          },
          "schema": [
            {
              "id": "message",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "message",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "sessionId",
              "type": "string",
              "display": true,
              "required": false,
              "displayName": "sessionId",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "823c3ea2-dbee-4da5-a660-8b862e675db1",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -400
      ],
      "parameters": {
        "color": 4,
        "height": 500,
        "content": "## 触发器:父工作流调用"
      },
      "typeVersion": 1
    },
    {
      "id": "61189fe9-31c1-4c03-b185-61ab5847e144",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        180
      ],
      "parameters": {
        "color": 3,
        "width": 220,
        "height": 520,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e9347973-3644-47dc-927e-87b480e473d9",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -980,
        180
      ],
      "parameters": {
        "width": 220,
        "height": 520,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "cee591cc-6c30-4d47-be93-5621315d02e4",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -460,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 620,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bfdeab4a-a387-41a6-97ca-6719b640b744",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 780,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "a79b656a-b38a-4b0e-96c3-70b5282710aa",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        40,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 780,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "d1656eec-67d4-4ff0-8cf2-ee2040a9d8f2",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        280,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 780,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "115e5783-5220-45ac-a80e-bd9dd11d4af1",
      "name": "便签7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        540,
        180
      ],
      "parameters": {
        "color": 6,
        "width": 220,
        "height": 780,
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "bb184375-fab1-431a-a33f-b3dc0751105d",
      "name": "便签8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -320,
        -380
      ],
      "parameters": {
        "color": 5,
        "width": 500,
        "height": 460,
        "content": "## 主要推理代理"
      },
      "typeVersion": 1
    },
    {
      "id": "396ab0d2-a322-4373-836f-94490acdc9f0",
      "name": "便签9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        940,
        -920
      ],
      "parameters": {
        "width": 1060,
        "height": 1900,
        "content": "# 📊 Binance 现货市场金融分析师工具 – 文档"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "9d7a97dc-1249-4e37-a25a-e003555850b7",
  "connections": {
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Binance SM 1day Indicators Agent": {
      "ai_tool": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Binance SM 15min Indicators Agent": {
      "ai_tool": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Binance SM 1hour Indicators Agent": {
      "ai_tool": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Binance SM 4hour Indicators Agent": {
      "ai_tool": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "When Executed by Another Workflow": {
      "main": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Binance SM Price-24hrStats-OrderBook-Kline Agent": {
      "ai_tool": [
        [
          {
            "node": "Binance SM Financial Analyst Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

高级 - 财务, 人工智能

需要付费吗?

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

工作流信息
难度等级
高级
节点数量19
分类2
节点类型6
难度说明

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

作者
Don Jayamaha Jr

Don Jayamaha Jr

@don-the-gem-dealer

With 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 查看

分享此工作流