@Tradehull_Imran Hi Sir, while using optionchain.py in CURSOR at line no 9 I got this error.
Exception has occurred: TypeError
cannot unpack non-iterable NoneType object
File “C:\Dhan\1. Option Chain\Working with Option chain.py”, line 9, in atm, option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=0, num_strikes=10) ^^^^^^^^^^^^^^^^^ TypeError: cannot unpack non-iterable NoneType object
atm, option_chain = tsl.get_option_chain(Underlying=“NIFTY”, exchange=“INDEX”, expiry=0, num_strikes=10)
Exception at getting Expiry list as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: None, ‘error_type’: None, ‘error_message’: None}, ‘data’: ‘’}
Unable to find the correct Expiry for NIFTY
Traceback (most recent call last):
File “”, line 1, in
TypeError: cannot unpack non-iterable NoneType object