https://github.com/menychtak/yfinance_stock_analysis
This project uses the Yahoo Finance library (yfinance) to fetch and analyze financial data based on a user-provided ticker symbol. The analysis involves calculating the daily percentage variation, saving data to CSV and Excel files, and plotting histograms of daily variations.
https://github.com/menychtak/yfinance_stock_analysis
matplotlib nympy pandas scipy yfinance
Last synced: 2 months ago
JSON representation
This project uses the Yahoo Finance library (yfinance) to fetch and analyze financial data based on a user-provided ticker symbol. The analysis involves calculating the daily percentage variation, saving data to CSV and Excel files, and plotting histograms of daily variations.
- Host: GitHub
- URL: https://github.com/menychtak/yfinance_stock_analysis
- Owner: menychtak
- License: mit
- Created: 2024-11-19T21:47:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-19T21:50:39.000Z (over 1 year ago)
- Last Synced: 2025-10-19T01:53:48.038Z (8 months ago)
- Topics: matplotlib, nympy, pandas, scipy, yfinance
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Financial Data Analysis Using Yahoo Finance
## Project Overview
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.
## Features
- 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.
## Requirements
Install the dependencies using:
```bash
pip install -r requirements.txt
```
## Usage
Run the script with the desired stock ticker symbol:
```bash
python script.py
```
You will be prompted to enter a ticker symbol, which will be used for data analysis and visualization.
## License
This project is licensed under the MIT License. See the LICENSE file for details.