An intelligent trading platform powered by multiple AI agents that collaborate to analyze markets, manage portfolios, and execute trades with sophisticated risk management.
Open Source Version Available - Deploy your own instance!
TradingGoose focuses on event-driven trading strategy and analysis that harnesses the power of AI agents and Alpaca's market data to deliver sophisticated trading recommendations and automated portfolio management insights. The system employs a multi-agent workflow architecture where specialized AI agents collaborate to analyze market-moving events in real-time.
The system leverages Large Language Models' natural language processing capabilities to rapidly analyze news, social media, and other textual data sources that often trigger market volatility. By processing these events faster than traditional methods, TradingGoose identifies potential market movements and generates timely trading signals for user-selected stocks.
Once analysis agents provide their recommendations, the Portfolio Manager AI agent takes over to:
- Analyze the user's Alpaca account details and current portfolio state
- Consider user-configured position sizing, allocation strategies, and risk tolerance
- Generate final trading orders with precise values and actions for specific tickers
- Make autonomous decisions that may differ from initial recommendations based on actual portfolio constraints and risk management
This two-layer approach ensures that while the analysis agents focus on identifying opportunities, the portfolio manager maintains discipline in execution, potentially overriding recommendations when they conflict with portfolio health, risk limits, or allocation rules.
This project's multi-agent analysis workflow architecture is based on the TauricResearch/TradingAgents framework, which pioneered the concept of collaborative AI agents for financial analysis.
- Coordinator Agent: Orchestrates analysis workflows and manages agent collaboration
- Market Analyst: Analyzes market trends and technical indicators
- Fundamentals Analyst: Evaluates company financials and valuation metrics
- News Analyst: Processes and interprets market news and events
- Social Media Analyst: Monitors social sentiment and trending topics
- Risk Analysts (Safe/Neutral/Risky): Provides multi-perspective risk assessments
- Portfolio Manager: Optimizes portfolio allocation and rebalancing
- Real-time Market Analysis: Continuous monitoring of stocks and market conditions
- Multi-Stock Analysis: Analyze multiple stocks simultaneously in a single workflow
- Portfolio Management: Comprehensive portfolio optimization with position sizing and allocation strategies
- Scheduled Rebalancing: Automated portfolio rebalancing on daily, weekly, or monthly schedules
- Live Trade Execution: Real order execution through Alpaca Markets (paper and live trading)
- Risk Assessment: Multi-dimensional risk analysis from conservative to aggressive perspectives
- Workflow Visualization: Real-time tracking of analysis and decision-making processes
- Historical Tracking: Complete audit trail of analyses, trades, and rebalancing activities
- Role-Based Access Control (RBAC): Granular permission system with admin, moderator, and user roles
- Secure Authentication: Supabase-powered authentication with email verification
- Invitation System: Controlled user onboarding through admin-managed invitations
- API Key Management: Secure storage and management of trading API credentials
- React 18 with TypeScript
- Vite for fast development and building
- TailwindCSS for styling
- Shadcn/ui component library
- React Router for navigation
- Recharts for data visualization
- Supabase for database, authentication, and real-time updates
- Edge Functions for serverless API endpoints & running workflow in background
- PostgreSQL for data persistence
- Row Level Security (RLS) for data isolation
- Alpaca Markets API for market data and trade execution
- Customizable AI Providers for agent intelligence (OpenAI, Anthropic, Google, and more)
When you initiate a stock analysis, TradingGoose orchestrates a sophisticated multi-agent workflow:

Note: This workflow architecture is adapted from the TauricResearch/TradingAgents framework.
1. ๐ Data Analysis Phase
- ๐ Macro Analyst: Government data and economic indicators
- ๐ Market Analyst: Historical data and technical indicators
- ๐ฐ News Analyst: Latest news and sentiment analysis
- ๐ฌ Social Media Analyst: Social platform trends and impact
- ๐ฐ Fundamentals Analyst: Financial statements and profitability
2. ๐ Research & Debate Phase
- ๐ Bull Researcher agent presents positive evidence and growth potential
- ๐ป Bear Researcher agent identifies risks and presents cautionary analysis
- โ๏ธ Both perspectives are rigorously evaluated for balance
3. โ ๏ธ Risk Assessment Phase
- Three specialized risk agents analyze from different perspectives:
- ๐ก๏ธ Safe Agent: Conservative approach focusing on capital preservation
- โ๏ธ Neutral Agent: Balanced view weighing opportunities against risks
- ๐ Risky Agent: Aggressive stance for high-growth potential
4. ๐งฉ Decision Synthesis
- ๐ Research Manager consolidates all agent insights
- ๐ฏ Risk Manager combines analyses with defined risk parameters
- ๐ผ Portfolio Manager evaluates position sizing and portfolio impact
5. โ Execution Ready
- ๐ Final recommendations are presented with confidence scores
- ๐ฆ Trade signals are generated based on collective intelligence
- ๐ All analysis is logged for historical tracking
TradingGoose continuously monitors your portfolio and market conditions:

1. ๐๏ธ Continuous Monitoring
- ๐ Price movements are tracked against user-defined thresholds
- ๐ฏ Portfolio allocations are compared to target weights
- ๐ Market conditions are evaluated for rebalancing opportunities
2. ๐ฏ Opportunity Detection
- ๐จ When thresholds are exceeded, the Opportunity Agent activates
- ๐ Stocks requiring attention are identified and prioritized
- ๐ Market-wide screening identifies new potential positions
3. ๐ฒ Strategic Analysis
- ๐ฌ Selected stocks undergo full multi-agent analysis
- ๐ Current positions are evaluated for scaling or exit
- ๐ New opportunities are assessed for entry
4. ๐จ Portfolio Optimization
- ๐ฏ Target allocations are calculated based on risk tolerance
- โ๏ธ Rebalancing trades are proposed to achieve optimal weights
- ๐ธ Tax implications and transaction costs are considered
5. ๐ Execution Management
- ๐ Proposed changes are presented for review
- โ Approved rebalancing is executed through connected brokers
- ๐ Performance tracking begins immediately post-execution
- Navigate to the Dashboard
- Enter a stock ticker in the search bar
- Click "Analyze" to trigger the multi-agent workflow
- Monitor progress in real-time through the workflow visualization
- Review comprehensive insights from all agents
- Go to Settings > Rebalancing
- Configure rebalancing settings (position sizes, thresholds, frequency)
- Schedule automatic rebalancing or trigger manually
- Review proposed changes before execution
- Track rebalancing history and performance
- Multi-perspective evaluation: Every stock is analyzed from bullish and bearish viewpoints
- Risk-adjusted recommendations: Three risk profiles ensure suitable strategies for all investors
- Confidence scoring: Each recommendation includes transparency about certainty levels
- Historical context: Past performance and patterns inform future predictions
- Automated rebalancing: Maintains optimal portfolio allocation without manual intervention
- Scheduled execution: Set daily, weekly, or monthly rebalancing schedules that run automatically
- Multi-stock portfolio analysis: Evaluate entire portfolio health and opportunities across all holdings
- Threshold-based triggers: Customizable sensitivity to market movements
- Real order execution: Direct integration with Alpaca for live market orders
- Position sizing algorithms: Smart allocation based on risk, conviction, and portfolio balance
- Tax-aware decisions: Considers holding periods and tax implications
- Dynamic position sizing: Adjusts positions based on conviction and risk tolerance
- Live workflow visualization: Watch agents collaborate in real-time
- Progress tracking: See exactly which phase of analysis is active
- Performance metrics: Track success rates and portfolio growth
- Comprehensive audit trail: Every decision is logged and traceable
- All API keys are stored encrypted in environment variables
- Database access is controlled through Row Level Security
- User actions are authenticated and authorized through RBAC
- Sensitive operations require admin privileges
- All trades can be executed in paper trading mode for testing
This project is licensed under the AGPL-3.0 License - see the LICENSE file for details.
For issues, questions, or suggestions:
- Open an issue on GitHub
- Join our Discord community ๐ฎ
๐ No humans were harmed in the making of this application!
This entire project was crafted with love by Claude Code - every single line of code, from the sleekest UI component to the smartest trading algorithm, was written by AI. Zero human-written code, 100% AI magic! ๐ช
Who says robots can't be creative? This production-ready financial platform proves that AI can build sophisticated applications that actually work in the real world. Welcome to the future of software development! ๐
- Multi-stock concurrent analysis
- Cancel/delete running analysis
- Retry failed analysis from specific failed agent
- Reactivate stale/stuck analysis workflows
- Real-time workflow visualization with progress tracking
- Historical analysis tracking and audit trail
- Automated Scheduled rebalancing (daily/weekly/monthly)
- Manual rebalancing triggers
- Position size configuration (min/max)
- Multi-stock portfolio monitoring
- Paper trading mode for testing
- Live trading execution via Alpaca
- Real-time order status tracking
- Position management and monitoring
- Multiple AI provider support (OpenAI, Anthropic/Claude, Google, DeepSeek)
- Custom max tokens configuration per agent
- Provider failover and retry logic
- Model selection flexibility
####Data & Analysis
- Historical data range selection
- Custom analysis timeframes
- Technical indicator calculations
- Fundamental data integration
- News sentiment analysis
- Social media trend tracking
- User Acount system
- API key management interface
- User activity tracking
- Secure credential storage
- Built with Supabase
- Trading powered by Alpaca Markets
- AI analysis powered by customizable providers (OpenAI, Anthropic, Google, and more)
- UI components from shadcn/ui
- Multi-agent architecture inspired by TauricResearch/TradingAgents
- 100% developed with Claude Code ๐ค
Important: Always conduct your own research and consider consulting with a financial advisor before making investment decisions. Past performance does not guarantee future results.