Option chai code(num_strikes error)

#option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=0)
Above code working fine but when i use below code its giving
TypeError: get_option_chain() got an unexpected keyword argument ‘num_strikes’

#atm_strike, option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=1,num_strikes=50)

using Codebase Version 3

Please upgrade to codebase 3.0.6 and it will work fine

Refer to this link

1 Like