@admin Thanks for the fix. I am yet to check the latest code, will check and let you know if any further issue found.
kripabhat
@kripabhat
Best posts made by kripabhat
Latest posts made by kripabhat
-
RE: WebSocket for getting Market dat
-
RE: Websocket Streaming - Total Open interest on Options not coming
@kripabhat @admin please confirm on the total open interest data(toi) on futures/options?
-
Get Market Depth data via WebSocket
Any one know how to get market depth data(Top 5 buy and sell order details) via websocket?
-
Websocket Streaming - Total Open interest on Options not coming
I have tried to get nse_fo data via websocket. message from server does not include total open interest (toi).
@admin, please check and confirm how to get open interest data for nse options?Sample response received for token="nse_fo|39975" given below,
Ticks: [{'ap': '78.09', 'bp': '73.05', 'bq': '225', 'bs': '150', 'c': '69.80', 'cng': '03.35', 'e': 'nse_fo', 'lo': '56.40', 'ltp': '73.15', 'ltq': '150', 'ltt': '21/12/2020 12:20:57', 'name': 'sf', 'nc': '04.80', 'sp': '73.30', 'tbq': '339300', 'tk': '39975', 'to': '2232628240.50', 'tsq': '611025', 'v': '28590450'}]
Ticks: [{'ap': '78.09', 'bp': '73.15', 'bq': '300', 'bs': '75', 'c': '69.80', 'cng': '03.55', 'e': 'nse_fo', 'lo': '56.40', 'ltp': '73.35', 'ltq': '75', 'ltt': '21/12/2020 12:20:58', 'name': 'sf', 'nc': '05.09', 'sp': '73.40', 'tbq': '342525', 'tk': '39975', 'to': '2232634097.25', 'tsq': '610875', 'v': '28590525'}]
-
RE: WebSocket for getting Market dat
@admin Please let me know when the fix will be available?
-
RE: WebSocket for getting Market dat
@admin Ok thanks, let me know once the fix is available
-
RE: WebSocket for getting Market dat
@admin Below is some more details,
I am sending correct message(subscription) to WebSocket after opening connection.
ws.sendText("{ "task":"cn","channel":"","token":""+feedToken+"","user":"<ClientCode>","acctid":"<ClientCode>" }");
ws.sendText("{"task":"mw","channel":"nse_cm|3045","token":""+feedToken+"","user":"<ClientCode>","acctid":"<ClientCode>"}");Once after sending the above message then below text message is received continuously,. Looks like issue with conversion of message??
WebSocket Connection Status=true
onTextMessage
eJyLrlYqKUvMKU1VslIyNI3RNzSK0TcyMDJQMDS0MjK0MjVW0lHKS8wFSZfkKtXqVCuBmHnFqfHJuQip4jQgO6ekAMg0MrPUMzcAcwtBZoKYJdlAlrGBiSlYuATI8XNUqo0FAB9nIH4= -
RE: WebSocket for getting Market dat
@kripabhat said in WebSocket for getting Market dat:
Did any one try getting market data via websocket? I am getting error while trying to use the example code given in SmartAPITicker.java
Can someone confirm if the java is supported for websocket?
onTextMessage Message received...
eJyLrlZKzFayUsrPVtJRKkksBrFzy4Hs3OJ0CLM2FgDEIQq3
at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
at org.json.JSONObject.<init>(JSONObject.java:214)
at org.json.JSONObject.<init>(JSONObject.java:357)
at com.angelbroking.smartapi.ticker.SmartAPITicker.parseTextMessage(SmartAPITicker.java:775)
at com.angelbroking.smartapi.ticker.SmartAPITicker.access$9(SmartAPITicker.java:771)
at com.angelbroking.smartapi.ticker.SmartAPITicker$3.onTextMessage(SmartAPITicker.java:306)
at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)@bhaveshjain, please confirm Java SDK supports websocket streaming of market data
-
WebSocket for getting Market dat
Did any one try getting market data via websocket? I am getting error while trying to use the example code given in SmartAPITicker.java
Can someone confirm if the java is supported for websocket?
onTextMessage Message received...
eJyLrlZKzFayUsrPVtJRKkksBrFzy4Hs3OJ0CLM2FgDEIQq3
at org.json.JSONTokener.syntaxError(JSONTokener.java:505)
at org.json.JSONObject.<init>(JSONObject.java:214)
at org.json.JSONObject.<init>(JSONObject.java:357)
at com.angelbroking.smartapi.ticker.SmartAPITicker.parseTextMessage(SmartAPITicker.java:775)
at com.angelbroking.smartapi.ticker.SmartAPITicker.access$9(SmartAPITicker.java:771)
at com.angelbroking.smartapi.ticker.SmartAPITicker$3.onTextMessage(SmartAPITicker.java:306)
at com.neovisionaries.ws.client.ListenerManager.callOnTextMessage(ListenerManager.java:352)