How can we make the Market feed (quote) run only every 3 minutes

How to avoid run_forecer() and manually connect and run when needed

Hello @abd1987

Welcome to Dhan Community!

Websockets by very nature, are supposed to maintain connection to receive continuous feed of data (or messages). In this scenario, you can use the same code sample to connect. However, at instance to disconnect, you can simply terminate the run_forever function.