It looks like you're new here. If you want to get involved, click one of these buttons!
com.neovisionaries.ws.client.OpeningHandshakeException: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 403 Forbidden
at com.neovisionaries.ws.client.HandshakeReader.validateStatusLine(HandshakeReader.java:232)
at com.neovisionaries.ws.client.HandshakeReader.readHandshake(HandshakeReader.java:54)
at com.neovisionaries.ws.client.WebSocket.readHandshake(WebSocket.java:3113)
at com.neovisionaries.ws.client.WebSocket.shakeHands(WebSocket.java:2992)
at com.neovisionaries.ws.client.WebSocket.connect(WebSocket.java:2034)
at com.TradeRobotBatch.api.KiteAPI.zerodhatech.ticker.KiteTicker.connect(KiteTicker.java:195)
at com.TradeRobotBatch.api.KiteAPI.zerodhatech.ticker.KiteTicker.reconnect(KiteTicker.java:625)
at com.TradeRobotBatch.api.KiteAPI.zerodhatech.ticker.KiteTicker.access$200(KiteTicker.java:30)
at com.TradeRobotBatch.api.KiteAPI.zerodhatech.ticker.KiteTicker$2.run(KiteTicker.java:126)
java.lang.ClassNotFoundException: okhttp3.internal.Platform
It looks like due to some version mismatch within okhttp dependency. Could you please let me know which version of okhttp did you guys use?
You can check out dependencies here.
I am unable to receive ticks. I am subscribing for MCX instrument tokens (53502215, 53505031) but receiving back ArrayList ticks with zero ticks in it. I have also tried with exchange tokens (i.e. 208993, 209004) but again same problem. Please guide me how shall I subscribe tokens to receive ticks.
It seems to be working fine for me. Are you sure you are not sending tokens as a string?
Exchange token won't work as it can repeat for some other instrument in another segment.
Did you set the listener for onError?