im getting an error (KeyError: 'candles') my algo worked smoothly for 2 min even my orders are getting placed but after 2 min i geting these error)

im getting an error (KeyError: ‘candles’) my algo worked smoothly for 2 min even my orders are getting placed but after 2 min i geting these error)

Hi Aditya,
Next time can you print only hist_data and show what output occurs.

when i only print hist_data i get an historical data but i get these error (ERR: logEntryFunc: history : [Errno 13] Permission denied: ‘/2022-11-04.txt’)
when i run these in for loop i got these issue

I too getting the same error with df = fyers.history(data)[‘candles’]. Any solution..please