Here I have subscribed to list of tokens say 3. When I am unsubscribing tokens, it doesn't unsubscribe. Here is the simple code, its not full code.
KiteTicker tickerProvider = new KiteTicker(kiteConnect.getAccessToken(), kiteConnect.getApiKey()); tickerProvider.connect(); // Now I got list of token results from server after subscribing it on onConnected() method.
tickerProvider.unsubscribe(tokens); // Here it doesn't unsubscribe
I also did disconnect but after reconnect it still gives all token results. I had to wait around 2 to 5 min after disconnect in order to unsubscribe it.
I already had done this ... as I mentioned I also have disconnect and reconnect even though it gives subscribed token results ... not sure if this has been tested correctly. I am getting market depth value as blank using tick.getMarketDepth() method other values i am getting.
https://kite.trade/docs/connect/v3/websocket/