Mar-30-2020, 05:52 AM
Hi people!
I am not so new to python but still need help. I am really motivated to master all round python for finance (quant related).
Can you help with this easy task and explain me how to write this code.
*
Need a Python class for Option that does the following:
* To hold option attributes (Option type, Strike, time to expiry)
* Methods to price the option using black scholes formula
* Also methods to calculate Delta, Gamma, Vega, Theta
* These methods take an object of type Option as a parameter and additional parameters to take market details
* Market details are (Stock price, Interest Rate, Volatility)
* Write a script to construct a Call option on Apple Stock strike of 275 and time to expiry 1 year, market details are Stock price of 275, Interest rate of 2% and volatility of 30%
Call the above methods to calculate Price, Delta, Gamma, Vega, Theta
Write a script to compute and plot Price, Delta, Gamma, Vega, and Theta for the above call option and market details, but show how the Price and greeks change as time to expiry goes from 1 day, 1 week, 1 -12 months
THANK YOU
I am not so new to python but still need help. I am really motivated to master all round python for finance (quant related).
Can you help with this easy task and explain me how to write this code.
*
Need a Python class for Option that does the following:
* To hold option attributes (Option type, Strike, time to expiry)
* Methods to price the option using black scholes formula
* Also methods to calculate Delta, Gamma, Vega, Theta
* These methods take an object of type Option as a parameter and additional parameters to take market details
* Market details are (Stock price, Interest Rate, Volatility)
* Write a script to construct a Call option on Apple Stock strike of 275 and time to expiry 1 year, market details are Stock price of 275, Interest rate of 2% and volatility of 30%
Call the above methods to calculate Price, Delta, Gamma, Vega, Theta
Write a script to compute and plot Price, Delta, Gamma, Vega, and Theta for the above call option and market details, but show how the Price and greeks change as time to expiry goes from 1 day, 1 week, 1 -12 months
THANK YOU