#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)
Please upgrade to codebase 3.0.6 and it will work fine
Refer to this link
Hey everyone,
We have updated the our codebase. The below are the changes done
Added num_strikes in the option chain
option_chain = tsl.get_option_chain(Underlying="NIFTY", exchange="INDEX", expiry=0, num_strikes=10)
Fixed the strike selection issue for NIFTY and FINNIFTY.
CE_symbol_name, PE_symbol_name, strike_price = tsl.ATM_Strike_Selection(Underlying='NIFTY', Expiry=0)
Fetched LTP for INDIA VIX
ltp = tsl.get_ltp_data(['INDIA VIX'])
Use the below code to update the codebase:
pip i…
1 Like