An open API service indexing awesome lists of open source software.

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.

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.