How do I run this on Linux
- User
How do I run this on Linux
Assistant
To run InvestorGPT on Linux, follow these steps:
1. Install Prerequisites
Ensure you have Python installed. You can check this by running:
bashpython3 --versionIf Python is not installed, you can install it using your package manager:
bashsudo apt-get update sudo apt-get install python3 python3-pip git2. Clone the Repository
Clone the InvestorGPT repository from GitHub:
bashgit clone https://github.com/LexiestLeszek/InvestorGPT.git cd InvestorGPT3. Set Up a Virtual Environment (Optional but Recommended)
Creating a virtual environment helps manage dependencies:
bashpython3 -m venv venv source venv/bin/activate4. Install Required Packages
Install the dependencies listed in
requirements.txt:bashpip install -r requirements.txt5. Run the Stock Data Loader
First, run the
stock_data_loader.pyscript to gather fundamental analysis data:bashpython3 stock_data_loader.pyThis script will scrape financial data from Finviz and save it to a CSV file.
6. Run InvestorGPT
Once the data is loaded, you can run the main script
InvestorGPT.pyto analyze today's loser stocks:bashpython3 InvestorGPT.pyThis script will:
- Identify the top 3 stocks that have experienced significant drops.
- Analyze the reasons for the stock price drops.
- Assess the financial health of the companies.
- Provide predictions on the likelihood of stock recovery.
7. Running the FastAPI Server (Optional)
If you want to run the FastAPI server to expose the analysis as an API, you can do so by running:
bash
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.