Close the websocket after receiving the ticks

How do I close the websocket connection after receiving the ticks?

I want to receive a batch of ticks, store them in a dataframe and close the connection. run the loop again after 1 minute.

How do I do that?

thanks in advance
Sign In or Register to comment.