FinnXperts is an intelligent, multi-agent stock recommendation system that uses a goal-driven architecture to analyze, recommend, and manage trades with a focus on execution quality and risk management.
Built with ❤️ using Python, Streamlit, and a modular agent-based design, this app is ideal for both educational and experimental financial AI applications.
- 📊 Real-time stock buy/sell/hold Recommendations
- 🧠 Multi-Agent Architecture
- 🛡️ Dynamic Risk Management
- 🤖 Autonomous Execution Decisions
- 🔁 Feedback Loop Between risk management and execution agent
- 🌐 Streamlit Web Interface
- 📰 Display news for selected stock
- 🤖 Chatbot integration for better understandiung for financial terms and working.
The system consists of four specialized agents that collaborate to analyze stock data, generate recommendations, evaluate risk, and execute trades. Communication is handled via a shared AgentCommunicationBus, enabling real-time feedback and coordination.
- Goal: Fetch and manage stock market data for selected tickers.
- State: Historical price data, OHLCV values, volume trends.
- Action: Supplies raw data for analysis and decision-making.
- Goal: Analyze stock data using technical indicators to generate a confidence score.
- State: Moving averages, RSI, MACD, Bollinger Bands, custom scoring models.
- Action: Evaluates and scores stocks, passing results to the ExecutionAgent.
- Goal: Determine whether to execute trades based on signals and risk evaluation.
- State: Analysis output, portfolio constraints, market conditions.
- Action: Initiates trade actions or holds based on received feedback from Risk_Management agent.
- Goal: Evaluate and control risk exposure across trade opportunities.
- State: Volatility levels, stop-loss thresholds, risk-reward ratios.
- Action: Can approve, adjust, or reject trades. If risk is too high, instructs ExecutionAgent to HOLD.
MarketDataAgent → TechnicalAnalysisAgent → ExecutionAgent
RiskManagementAgent ↔ ExecutionAgent
All communication happens via the AgentCommunicationBus.
If the RiskManagementAgent detects high exposure or unfavorable conditions, it sends a feedback signal to the ExecutionAgent to HOLD the stock and skip execution.
-
Clone the repository:
git clone <https://github.com/prithvia28/TradingRecSys.git> cd <path to your repo> ### Setting Up
-
Create and activate a virtual environment:
# Create a virtual environment named 'venv' python -m venv venv # Activate the virtual environment # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Running project
pip install -r requirements.txt streamlit run app.py