This repository contains scripts that fetch stock data and use it to build a machine learning model for predicting stock prices.
- Python 3.12.1 installed on your machine
- Download the entire folder to your local machine
-
Open a terminal or command prompt.
-
Navigate to the project directory.
-
Run the following command to install the required Python libraries:
pip install -r requirements.txt
- Open a terminal or command prompt.
- Navigate to the project directory.
-
To predict the price of a single stock, run the following command:
python3 ml_builder.py
Note: Make sure you have the "index_symbol_list_single_stock.csv" file in the same directory as "ml_builder.py".
-
To predict the price of multiple stocks, run the following command:
python3 stock_analyzer.py
Note: Make sure you have the "index_symbol_list_multiple_stocks.csv" file in the same directory as "stock_analyzer.py".
- Open a terminal.
- Navigate to the project directory.
-
To predict the price of a single stock, run the following command:
python3 ml_builder.py
Note: Make sure you have the "index_symbol_list_single_stock.csv" file in the same directory as "ml_builder.py".
-
To predict the price of multiple stocks, run the following command:
python3 stock_analyzer.py
Note: Make sure you have the "index_symbol_list_multiple_stocks.csv" file in the same directory as "stock_analyzer.py".
To change the stock ticker that "ml_builder.py" predicts the price of, follow these steps:
- Open the "index_symbol_list_single_stock.csv" file in a text editor.
- Change the ticker to the desired stock symbol.
- Save the file.
- "index_symbol_list_single_stock.csv" is required to run "ml_builder.py".
- "index_symbol_list_multiple_stocks.csv" is required to run "stock_analyzer.py".