I receiving the following error when I try to compute a cap price. However, I'm not sure how to solve this error.
" error: nu (-1.00062) must be >= -1.0 expiry: June 4th, 2020 annuity: 0.0830405 price: -1.25183e-07 atm: 0.255034 % strike: 0.739166 % type: Call RuntimeError: could not bootstrap optionlet:
I've transformed the normal vols into decimals. Below is the code how I set up the optionlet handle.
> cap_floor_vol = ql.CapFloorTermVolSurface(2, ql.UnitedStates(),ql.ModifiedFollowing, expiries, vol_strikes, vol_surface)
> optionlet_surf = ql.OptionletStripper1(cap_floor_vol, ibor_index, ql.nullDouble(), 1e-6, 100, yts_handle_dis, type = ql.Normal)
> ovs_handle = ql.OptionletVolatilityStructureHandle(ql.StrippedOptionletAdapter(optionlet_surf))
> ovs_handle.enableExtrapolation()
Can someone point me in the right direction? Thanks.