Skip to content

😱 This Python script provides a comprehensive analysis of stock options using data retrieved from Yahoo Finance. It calculates various metrics such as implied volatility, historical volatility, intrinsic value, and time value for stock options. The analysis is based on the Black-Scholes option pricing model and historical stock price data.

License

Notifications You must be signed in to change notification settings

guccipepito/Stock-Options-Analysis-Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

Stock Options Analysis Tool

This Python script provides a comprehensive analysis of stock options using data retrieved from Yahoo Finance. It calculates various metrics such as implied volatility, historical volatility, intrinsic value, and time value for stock options. The analysis is based on the Black-Scholes option pricing model and historical stock price data.

see-we-will

Features :

Option Data Retrieval: Fetches option data including expiration dates, strike prices, and last prices from Yahoo Finance.

Implied Volatility Calculation: Uses the Black-Scholes model to calculate the implied volatility of options.

Intrinsic Value Calculation: Computes the intrinsic value of call and put options based on the current stock price.

Time Value Calculation: Determines the time value of options by subtracting the intrinsic value from the option price.

Historical Volatility Calculation: Estimates the historical volatility of the underlying stock using historical price data.

Data Export: Saves the analyzed option data along with calculated metrics to an Excel file for further analysis.

Usage:

  1. Run the script and enter the symbol of the stock you want to analyze.

  2. The script will retrieve option data for the specified stock and perform the analysis.

  3. Analyzed data is saved to an Excel file, which can be downloaded for further examination.

Dependencies:

• yfinance: For retrieving stock and option data from Yahoo Finance.

• numpy: For numerical computations.

• scipy: For statistical functions.

• pandas: For data manipulation and analysis.

• openpyxl: For creating Excel files.

• google.colab: For downloading files in Google Colab environment.

License:

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

Acknowledgments:

• This script is inspired by the Black-Scholes option pricing model and various resources on options trading.

Capture d’écran, le 2024-03-01 à 01 16 03

Special thanks to the developers of yfinance and other libraries used in this project.

About

😱 This Python script provides a comprehensive analysis of stock options using data retrieved from Yahoo Finance. It calculates various metrics such as implied volatility, historical volatility, intrinsic value, and time value for stock options. The analysis is based on the Black-Scholes option pricing model and historical stock price data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages