Streaming the data using same method from another discount broker ..seems to be working fine ..I am sure that I am not blocking the main thread ..was doing the same thing and that broker has thier issues as well but there is no loss of data.I don't …
Not in the same programme,I don't even read the database in the same programme,I cannot afford delay of x seconds because the requirement of the strategy is close to realtime..I started losing data as of now
I am able to get and save ticks only issue is loss of data( not happening at the moment compared for same using historical data)but the websocket drops and connects every 5-10 seconds I will inevitably lose important data in the long run
@sujith In the above code I am not blocking the main thread,all the calculations are done inside the loop and the connection is threaded as well,I went through the previous discussions regarding the same before posting the error
I am really sorry if I am bothering you guys ,I do not have much experience with handling websocket ,I am used to trading low latency strategies via historical data or market snapshots,any help is highly appreciated