Hey,
I’m working on something related to options, where i want to calculate greeks values. I’ve used this piece of code on Blueshift
Greek = ["DELTA", "VEGA","THETA" , "GAMMA"]
Greeks_values = {}
option_type = option_type # Change to "PUT" where required
imp_vol = models.bs.bs_implied_vol(underlying,strike_price, close , time , option_type)
# print(imp_vol)
# imp_vol = imp_vol_Call if option_type == "CALL" else imp_vol_Put
# print(f"Implied Volatility : {imp_vol}")
Greeks_values["imp_vol"] = imp_vol
for greek in Greek:
Greeks_values[greek] = models.bs.bs_plain_vanilla_greek(
underlying, # ATMF
strike_price, # Strike
imp_vol, # Implied Volatility
time,
option_type,
greek, # Pass each Greek individually
252
)
but i’m getting very high values of greeks, Can anyone please help me out with this ?
Long Call Greeks : {'imp_vol': 0.148363, 'DELTA': 0.4984362146830037, 'VEGA': 1216.0295564870519, 'THETA': 90.20689654454424, 'GAMMA': 0.0008821526056771637}