
AI Hedge Fund
by Rick Blalock
🏦 AI Hedge Fund Agent
A sophisticated AI-powered hedge fund trading agent built with Agentuity and LangGraph orchestration, delivering professional-grade trading decisions through comprehensive market analysis and intelligent portfolio management.
✨ Key Features
- 🧠 Enhanced LLM Query Parsing - Single smart call extracts portfolio context, risk signals, and trade intent
- 📊 Multi-Modal Analysis - Technical indicators (RSI, MACD, EMA) + sentiment analysis + real-time news
- 🎯 Intelligent Routing - LangGraph workflow adapts based on query complexity and user intent
- 💼 Portfolio Decision Engine - Makes concrete BUY/SELL/HOLD decisions with specific quantities
- ⚡ Real-Time Data - Live market data from yfinance and CoinGecko APIs
- 🛡️ Risk Management - Comprehensive risk assessment with position sizing recommendations
- 📋 Actionable Output - Concrete trading tables with entry/exit prices, stop losses, and position sizes
- 🚀 Agentuity Native - Built for seamless deployment on Agentuity platform
🔄 How It Works
The agent uses a 6-step LangGraph workflow: query parsing → asset search → technical analysis → risk assessment → portfolio decisions → response generation. It combines technical indicators (RSI, MACD, EMA) with sentiment analysis to make actionable trading recommendations.
🚀 Quick Start with Agentuity
Prerequisites
- Python: 3.10+
- UV: 0.5.25+ (Documentation)
- Agentuity CLI: Install from agentuity.dev
Authentication
Development Mode
Set up your .env
with these keys:
Start the agent in development mode for real-time testing:
This launches the Agentuity Console where you can test queries and see responses in real-time.
Production Deployment
Deploy your agent to the Agentuity cloud platform:
Example Queries
The agent handles various types of trading queries with intelligent routing:
🔹 Trade Decisions: "Should I buy Apple stock?" → Full analysis + BUY/SELL table
🔹 Portfolio Context: "I own 100 shares of Tesla, should I buy more?" → Risk assessment
🔹 Market Analysis: "How is Bitcoin doing today?" → Technical + sentiment analysis
🔹 Risk Assessment: "Is my portfolio too risky?" → Portfolio risk evaluation
🏗️ Deployment with Agentuity
Local Development
Production Deployment
Environment Configuration
🤝 Contributing
This is a production-ready hedge fund agent built with Agentuity and LangGraph. For detailed architecture and implementation principles, see the architecture documentation.
📚 Documentation
🆘 Support
AI Hedge Fund
by Rick Blalock