Skip to content

Meet Our Al-Driven "Multi-Agent System" for Intelligent Financial Analysis, Predictive Trading, and Risk Management. (We are facing some issues in hosting, we'll be back soon. Meanwhile working sub-domain - chat.finforesight.dev )

Notifications You must be signed in to change notification settings

0xfarben/FinForesight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Financial Analysis and Trading Platform (FinForesight)

A sophisticated financial analysis and trading platform leveraging multiple AI agents for market analysis, trading strategies, and risk management, integrated with DTMAC (Distributed Targeted Multi Agent Communication) for seamless multi-agent collaboration.

FinForesight Logo

πŸš€ Features

  • Multi-Agent System: AI agents performing distinct roles like stock analysis, strategy development, and risk management.
  • DTMAC Integration: Advanced coordination system that enhances agent interaction and collaboration.
  • Real-time Data Processing: Live stock data fetching and analysis with immediate feedback.
  • Technical Analysis: Incorporation of advanced technical indicators and market analysis techniques.
  • Risk Management: Advanced strategies to assess, minimize, and manage market risk.
  • Trading Strategies: Development of AI-powered algorithms for trading decision-making.
  • Data Archiving: Comprehensive storage and management of historical data and analysis.
  • WebSocket Support: Real-time updates, trading signals, and alerts.
  • AI Chatbot: FinBot – A Groq-powered chatbot that provides real-time market insights and answers.

πŸ› οΈ Technology Stack

  • Backend: Python, Flask
  • Data Processing: Pandas, NumPy
  • Real-time Communication: Flask-SocketIO
  • Data Storage: Local file system with structured archiving
  • AI/ML: Custom AI agents for market analysis and decision-making
  • Coordination System: DTMAC (Dynamic Task Management and Coordination)

Screenshots

Homepage

47-6

Our Agents

48-8

Anlayzer Block

48-7

Display of Top Performace Stocks

49-9

Agents Execution Flow

50-11

Data Analyst Agent

50-10

Trade Strategy Developer Agent

51-13

Trade Advisor Agent

51-12

Risk Advisor Agent (coming soon..)

πŸ“‹Data Flow Digram

22-4

πŸ“‹ Prerequisites

  • Python 3.8+
  • pip (Python package manager)
  • Git

πŸ”§ Installation

  1. Clone the repository:
git clone https://github.com/0xfarben/FinForesight.git
cd FinForesight
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r setup.txt
  1. Set up environment variables [.env file (in root) can also be used]:
export SESSION_SECRET="your-secret-key"  # On Windows: set SESSION_SECRET=your-secret-key
export ALPHA_VANTAGE_API_KEY="your-api-key"  # On Windows: set ALPHA_VANTAGE_API_KEY=your-api-key

πŸ—οΈ Project Structure

β”œβ”€β”€ agents/                 # AI agent implementations
|   β”œβ”€β”€ base_agent.py  
β”‚   β”œβ”€β”€ dtmac.py           # DTMAC coordination system
|   β”œβ”€β”€ orchestrator.py  
β”‚   β”œβ”€β”€ data_analyst_agent.py
β”‚   β”œβ”€β”€ trade_strategy_agent.py
β”‚   β”œβ”€β”€ trade_advisor_agent.py
β”‚   └── risk_advisor_agent.py
β”œβ”€β”€ services/              # Core services
β”‚   β”œβ”€β”€ historic_data.py           # Historical data management
β”‚   β”œβ”€β”€ stock_data.py             # Stock data fetching and processing
β”‚   β”œβ”€β”€ stock_overview.py         # Stock overview and analysis
β”‚   β”œβ”€β”€ technical_indicator.py    # Technical analysis indicators
β”‚   β”œβ”€β”€ ratios.py                 # Financial ratios calculations
β”‚   β”œβ”€β”€ financial_statement.py    # Financial statement analysis
β”‚   β”œβ”€β”€ economics.py             # Economic indicators and analysis
β”‚   β”œβ”€β”€ news_sentiment.py        # News sentiment analysis
β”‚   └── earning_call_transcript.py # Earnings call analysis
β”œβ”€β”€ templates/            # HTML templates
β”œβ”€β”€ static/              # Static assets
β”œβ”€β”€ data_archive/        # Historical data storage
β”œβ”€β”€ strategies_archive/  # Trading strategies storage
β”œβ”€β”€ predictions_archive/ # Market predictions storage
β”œβ”€β”€ risk_archive/        # Risk analysis storage
β”œβ”€β”€ app.py              # Main application file
└── setup.txt    # Python dependencies

πŸš€ Usage

  1. Start the application:
python app.py
  1. Access the web interface at http://localhost:5000

  2. Key endpoints:

    • /: Main dashboard
    • /analyze: Stock analysis interface
    • /api/top_stocks: Top performing stocks API

πŸ€– AI Agents

Data Analyst Agent

  • Performs comprehensive stock data analysis
  • Generates market insights
  • Processes historical data

Trade Strategy Agent

  • Develops trading strategies
  • Analyzes market patterns
  • Generates trading signals

Trade Advisor Agent

  • Provides trading recommendations
  • Evaluates trading opportunities
  • Suggests entry/exit points

Risk Advisor Agent

  • Assesses market risks
  • Provides risk management strategies
  • Monitors portfolio risk levels

🧠 DTMAC - Dynamic Task Management and Coordination

The DTMAC system is a coordination framework that helps manage and synchronize tasks between multiple AI agents, enabling them to communicate and collaborate seamlessly. DTMAC enhances the platform by ensuring that each agent can work independently while contributing to a unified strategy.

  • Task Assignment: Automatically assigns tasks to agents based on real-time analysis and needs.
  • Data Sharing: Facilitates data exchange between agents for more informed decision-making.
  • Collaboration: Ensures smooth collaboration between agents with minimal conflicts.

πŸ“Š Data Management

The platform maintains several archive directories:

  • data_archive/: Historical stock data
  • strategies_archive/: Trading strategies
  • predictions_archive/: Market predictions
  • risk_archive/: Risk analysis reports

πŸ”’ Security

  • Session-based authentication
  • Environment variable configuration
  • Secure data handling practices

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ“ž Support

For support, please open an issue in the repository or contact the development team.

About

Meet Our Al-Driven "Multi-Agent System" for Intelligent Financial Analysis, Predictive Trading, and Risk Management. (We are facing some issues in hosting, we'll be back soon. Meanwhile working sub-domain - chat.finforesight.dev )

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •