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.
- 🧠 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
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.
- Python: 3.10+
- UV: 0.5.25+ (Documentation)
- Agentuity CLI: Install from agentuity.dev
agentuity loginSet up your .env with these keys:
NEWSAPI_KEY=[Make one here: https://newsapi.org/]
FRED_API_KEY=[Make one here: https://fred.stlouisfed.org/docs/api/api_key.html]
AGENTUITY_SDK_KEY=
AGENTUITY_PROJECT_KEY=
Start the agent in development mode for real-time testing:
agentuity devThis launches the Agentuity Console where you can test queries and see responses in real-time.
Deploy your agent to the Agentuity cloud platform:
agentuity deployThe 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
# Start development server with hot reload
agentuity dev
# Test specific queries
curl -X POST http://localhost:8000/agent \
-H "Content-Type: application/json" \
-d '{"message": "Should I buy Apple stock?"}'# Deploy to Agentuity cloud
agentuity deploy
# View deployment status
agentuity status
# View logs
agentuity logs# Set API keys for production
agentuity env set NEWSAPI_KEY your_news_api_key # https://newsapi.org/
agentuity env set FRED_API_KEY your_openai_key # https://fred.stlouisfed.org/docs/api/api_key.htmlThis is a production-ready hedge fund agent built with Agentuity and LangGraph. For detailed architecture and implementation principles, see the architecture documentation.
