Skip to content

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.

License

Notifications You must be signed in to change notification settings

menychtak/yfinance_stock_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

pip install -r requirements.txt

Usage

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages