Kotak-Neo / kotak-neo-api

120 stars 112 forks source link

Handle ERROR in HSWebscoket #206

Open dkripalani opened 4 months ago

dkripalani commented 4 months ago

I am getting this issue "ERROR in HSWebscoket " very often when i am trying to extract live data. If i get this error I would like to wait for couple of seconds or try 3 to 4 times and then pop a message that there is an error. Please help how it can be done.

once the data is extracted it is saved in x variable. But if there is socket issue then x variable is not created.

Please note i am extracting live data for nearly 1000 companies. I am extracting for 100 companies at a time x = client.quotes(instrument_tokens = temp)