The Real-Time Stock Market Tracker is a Streamlit web application that provides real-time stock market tracking, historical data visualization, stock price prediction, watchlist functionality, and related news articles for selected stocks.
- Stock Selection by Index: Choose a stock index and select a company from it.
- Real-Time Stock Data: Fetch the latest stock prices using Yahoo Finance.
- Historical Data Visualization: Display historical price trends using interactive Plotly charts.
- Stock Price Prediction: Predict future stock prices using Linear Regression.
- Watchlist Functionality: Add selected stocks to a personal watchlist.
- Stock News Updates: Retrieve and display the latest news articles related to the selected stock using NewsAPI.
- Python
- Streamlit: For building the interactive web app.
- Yahoo Finance (yfinance): To fetch real-time stock data.
- Pandas: For data manipulation.
- Plotly: For data visualization.
- Scikit-learn: For Linear Regression-based stock price prediction.
- Requests: To fetch news articles from NewsAPI.
Ensure you have Python installed (version 3.x recommended).
- Clone the repository:
git clone https://github.com/dkconnect/smtt.git
- Navigate to the project directory:
cd smtt - Install the required dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run app.py
- Select a stock index and choose a company.
- View real-time stock data.
- Click Show Historical Data to see stock price trends.
- Click Predict Stock Prices to generate stock price predictions.
- Click Add to Watchlist to save stocks for future tracking.
- Click Show News to fetch the latest news articles.
To enable the news fetching feature, replace the placeholder API key in the get_news function with your NewsAPI key. You can obtain one at NewsAPI.
© 2024 DK - Lucifer. All rights reserved.