Closed qFactorin closed 2 years ago
You can try to use ws.close()
or ws.stop()
, I have not tried it myself but read about it. You can implement a try catch for Exception KeyboardInterrupt
i dont want to stream data all the time.. i just want to read ltp and stop the streaming .. how to go about it? I dont think ws.stop will work here
@dccgarch subscribe and unsubscribe a scrip token is the best way. keep stream running
Check documentation here for subscribe and here for unsubscribe
i did subscribe and unsubscibe and it kept streaming ..I got the ltp printed in the middle.. so i guess i am doing the right way which is exactly similar to what you have suggested. I was just wondering would you be able to demonstrate something like using sqlite and store the streaming data in a db and then possibly resample the data to form candle. SO here you get both ltp and real time candles too
Hi, could you please give some guidance on right way to stop websocket stream.