This project leverages the yfinance
library to fetch, analyze, and visualize financial data based on a user-inputted ticker symbol. The analysis includes:
- Fetching daily historical stock data.
- Calculating daily percentage variations.
- Exporting data to CSV and Excel formats.
- Plotting histograms of daily percentage variations.
- Fitting and visualizing normal distributions for statistical analysis.
- Fetch data using a specified stock ticker (e.g., 'PFE' for Pfizer).
- Calculates and plots percentage daily variations.
- Saves data in CSV and Excel formats.
- Visualizes data distribution and normal fit.
Install the dependencies using:
pip install -r requirements.txt
Run the script with the desired stock ticker symbol:
python script.py
You will be prompted to enter a ticker symbol, which will be used for data analysis and visualization.
This project is licensed under the MIT License. See the LICENSE file for details.