Skip to content

YashodhanDeshmukh21/DataVinci-Submission

Repository files navigation

Stock Data Extraction and Analysis

This Python script extracts historical stock data for a given stock symbol from Yahoo Finance and performs data processing and visualization tasks.

Prerequisites

Make sure you have the following libraries installed:

  • pandas
  • yfinance
  • matplotlib
  • mplfinance

You can install these libraries using pip:

Usage

  1. Open the stock_data_extraction.py file.
  2. Modify the symbol, start_date, and end_date variables according to your requirements.
  3. Run the script.

The script will extract historical stock data for the specified symbol and date range, calculate additional parameters such as return, volatility, market cap, and P/E ratio, and save the data to a CSV file.

It will also print the average daily trading volume and visualize the stock's volatility over time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published