Track the stock prices of your favorite companies in real-time.
Before you begin, ensure that you have the following software and tools installed on your machine:
The Stock Price Tracker comes with the following key features:
Follow these steps to install and set up the stock price tracker:
Step 1: Clone or download the repository to your local machine.
git clone https://github.com/Dhwani2k3/stock-price-tracker.git
Step 2: Navigate to the project directory in the terminal.
cd stock-price-tracker
Step 3: Create a virtual environment (optional but recommended).
python -m venv venv
Step 4: Activate the virtual environment.
source venv/bin/activate
venv\Scripts\activate
Step 5: Install the required dependencies using pip.
pip install -r requirements.txt
Once everything is set up, follow these steps to use the tracker:
Step 1: Open a terminal window and run the Python script to start tracking stock prices.
python track_stock.py
Step 2: The tracker will prompt you to enter a stock symbol (e.g., ‘AAPL’ for Apple, ‘GOOG’ for Google, ‘TSLA’ for Tesla).
Step 3: The tracker will fetch and display the real-time stock price for the symbol entered. Prices will be updated every minute.
Step 4: To stop the tracker at any time, press Ctrl + C in the terminal.
If you encounter any issues, here are some common solutions:
Problem: “ModuleNotFoundError” or missing dependencies.
Solution: Make sure you have installed the necessary dependencies using pip install -r requirements.txt
.
Problem: “Invalid stock symbol” error.
Solution: Double-check that the stock symbol is correct. You can find valid stock symbols on stock market websites like Yahoo Finance or Google Finance.
Problem: Stock price is not updating.
Solution: Ensure you have an active internet connection. The script requires internet access to fetch real-time data.
Problem: The script crashes or doesn’t run.
Solution: Check if all prerequisites are installed correctly, and ensure your Python version is up to date.
If you need additional help, feel free to contact us:
We will be happy to assist you with any questions or issues you may have!
© 2024 Real-Time Stock Price Tracker | All Rights Reserved |