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)
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)