Market Insight AI
is a comprehensive tool for stock market prediction, utilizing advanced machine learning techniques. It includes two main scripts:
-
Clone the repository or download the scripts:
git clone https://github.com/DevSakkaravarthi/MarketInsightAI.git
or download the scripts directly.
-
Install required Python packages: Navigate to the directory containing the
requirements.txt
file and run:pip install -r requirements.txt
-
Obtain an polygon API key: Visit Polygon to get your API key. and add key to environment
export POLIGON_API_KEY='your_api_key_here'
On Windows:
set POLIGON_API_KEY=your_api_key_here
- Start the Streamlit web interface:
streamlit run app_streamlit.py
- Use the web interface: Open your web browser to interact with the Streamlit application.
-
Execute the script: Start the Flask server
python app_api.py
-
Use the endpoint /predict with a POST request to get stock price predictions. The request should include JSON data with the stock symbol and number of days for prediction.
Example POST request data:
{ "symbol": "AAPL", "days": 7 }
- Python 3.x
- Streamlit (for StockPredictProphet.py and app_streamlit.py)
- Flask (for app_api.py)
- PyTorch (for AI model)
- Additional libraries: Pandas, NumPy, requests, yfinance, sklearn, prophet
Refer to requirements.txt
for a complete list of dependencies.
For queries or issues, please open an issue in the repository or contact the maintainer.