@rakeshr I am able to use java kite connect and it is working fine to place orders , but i need help to read websocket data using java.. i am not aware of python.. so please help me to read websocket data using java
@sujith i checked this and tested.. it is connecting fine.. but i am not getting any ticks.. is there anything wrong with websocket that it is not returning any tick data ?
I have authenticated and I am able to get access token , then passing the kiteconnect object to the code which you have given..
it looks like it is not connecting to kite ticker
final KiteTicker tickerProvider = new KiteTicker(kiteConnect.getAccessToken(), kiteConnect.getApiKey());
boolean isConnected = tickerProvider.isConnectionOpen(); System.out.println(isConnected); --- for the above code, i am getting false which means ticket is not connected.
no tick level information is displaced.
can you please check once and let me know if anything is wrong ?
I have authenticated and I am able to get access token , then passing the kiteconnect object to the code which you have given..
it looks like it is not connecting to kite ticker
final KiteTicker tickerProvider = new KiteTicker(kiteConnect.getAccessToken(), kiteConnect.getApiKey());
boolean isConnected = tickerProvider.isConnectionOpen();
System.out.println(isConnected);
--- for the above code, i am getting false which means ticket is not connected.
no tick level information is displaced.
can you please check once and let me know if anything is wrong ?
You may also implement onError and put a log there as well.
But if internet is disconnected and reconnects back , I am getting zero ticks though retry count is set to 100.
If I restart the program I am getting the data again, how can I get the data once it is reconnects without restarting the program again ?
The latest version does subscribe to tokens after it reconnects.