Welcome to the Advanced Stock Price AI Bot! This is a powerful tool for stock market analysis, visualization, and AI-driven insights. Built with Python, Streamlit, and OpenAI's GPT-4, this application provides real-time stock data, technical analysis, and an AI-powered chatbot for financial queries. Whether you're a beginner or an experienced trader, this tool is designed to help you make informed decisions.
Clone the Repository:
git clone https://github.com/Rohanpatil2/Advanced-Stock-AI-Bot.git cd Advanced-Stock-AI-Bot
Set Up a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
Install Dependencies:
pip install -r requirements.txt
Set Up Environment Variables:
.env
file in the root directory.OPENAI_API_KEY=your_openai_api_key_here
Run the Application:
streamlit run app.py
Access the App:
http://localhost:8501
.Advanced-Stock-AI-Bot/
āāā app.py # Main application file
āāā requirements.txt # List of dependencies
āāā .env # Environment variables
āāā MASTER.db # SQLite database for user authentication
āāā README.md # Project documentation
āāā htmlTemplates/ # HTML templates for chat UI
āāā css.py # Custom CSS styles
āāā user_template.html # User chat template
āāā bot_template.html # Bot chat template
Query | Example Response |
---|---|
"What is the trend for AAPL in the last month?" | "AAPL has shown an upward trend with a 5% increase in the last month." |
"Compare TSLA and NVDA performance." | "TSLA has grown by 10% while NVDA has grown by 8% over the last 3 months." |
"What are the Bollinger Bands for GOOGL?" | "The Bollinger Bands for GOOGL indicate a period of low volatility." |
Technology | Purpose |
---|---|
Streamlit | Web application framework |
YFinance | Fetching stock market data |
OpenAI GPT-4 | AI-powered financial insights |
Plotly | Interactive data visualizations |
SQLite | User authentication and data storage |
Pandas | Data manipulation and analysis |
NumPy | Numerical computations |
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you'd like to contribute, please follow these steps:
git checkout -b feature/YourFeatureName
).git commit -m 'Add some feature'
).git push origin feature/YourFeatureName
).For questions or feedback, feel free to reach out: