I want to scan the Sensex options to get suitable CALL, PUT levels in Sensex based on my strategy, but I am not been able to get intraday data of Sensex Options. What changes should I made to the code in order to get proper data. @Tradehull_Imran sir Could you help me on this ?
My Code is:-
watchlist = ['SENSEX']
trade_info = {'Direction': 'Buy', 'Level': 80100}
traded_watchlist = []
while True:
live_pnl = tsl.get_live_pnl()
current_time = datetime.datetime.now().time()
if current_time < datetime.time(9, 15):
print("Market is not open yet")
time.sleep(5)
continue
for option in watchlist:
time.sleep(0.2)
print(f"Processing: {option}")
chart_5 = tsl.get_intraday_data(
tradingsymbol=option, exchange='BSE', timeframe=5)
complete_chart_5 = chart_5.iloc[-1]
pdb.set_trace()
Error is as follows:-