๐ Overview
This modern n8n workflow implements a multi-agent trading engine that orchestrates valuation, sentiment, fundamentals, technicals, and macro analyses to generate a single portfolio action with built-in risk controls. It integrates Telegram for live commands, fetches market data, fans out to expert LLM agents, applies position limits via a Risk Manager, executes orders, logs to Notion, and sends a summary back to Telegram.
๐ง What It Does
- Telegram Trigger listens for ticker commands and context inputs ๐ฒ
- Market Data Node fetches live prices and exchange rates from an API (no hardcoded keys) ๐
- LLM Agents run parallel analyses: valuation, sentiment, macro, fundamentals, technicals ๐
- Risk Manager enforces max position sizes, stop-loss limits, and confidence thresholds โ๏ธ
- Portfolio Manager aggregates signals into a final BUY/SELL/HOLD decision with allocation % ๐
- Execute Order sends trade requests via HTTP Request ๐
- Log to Notion writes a full audit trail for compliance ๐
- Telegram Output posts a concise report with signals, risk notes, and final decision ๐ค
๐ก Why Itโs Useful
This template illustrates a modular โinvestment committeeโ architecture that is easy to extend, swap agents, and maintain. It follows n8nโs best practices for template submissions: sticky-note documentation, placeholder credentials, markdown descriptions, and clear H2 headings.
๐ Prerequisites
- Telegram Bot credentials configured in n8n
- Exchange or data API credentials stored as n8n Credentials (no inline keys)
- OpenAI (or other LLM) API credential
- Notion integration credentials
๐ ๏ธ How to Use
- Import the JSON into n8n and open the canvas.
- Read each Sticky Note for node-by-node setup tips and rate-limit guidance ๐๏ธ
- Configure credentials via the n8n Credentials Manager ๐
- Test each branch (data fetch, agents, risk logic) in isolation before enabling order execution โ
๐ Architecture Layers
- Trigger : Telegram Trigger โ
- Data : HTTP Request โ
- Analysis : Parallel LLM Agents โ
- Risk : Risk Manager โ
- Decision : Portfolio Manager โ
- Action : Execute Order, Log to Notion, Send Telegram summary
๐ Security & Maintenance
All API keys are stored securely as credentials. Sticky Notes document required scopes, retry strategies, and error-handling paths to ensure observability and safe testing.
Enjoy building and customizing your own AI-powered hedge-fund workflow!