How to get NSE and BSE Live Market Data in Nodejs
-
@admin the old WebSocket code seems to be working. Just wanted to know until what time I will get data in WebSocket? is it till 3:20 pm?
-
@admin I am not getting any error. But when I checked the promise is not getting resolved.
let web_socket = new WebSocketClient({ clientcode: "V27127", jwttoken: jwtToken, apikey: "85hgcaVa", feedtype: "order_feed" }); web_socket.connect() .then(() => { web_socket.fetchData("subscribe", "order_feed"); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed setTimeout(function () { web_socket.close() }, 60000) }); web_socket.on('tick', receiveTick); function receiveTick(data) { console.log("receiveTick:::::", data); }
When I tried to remove the feed type parameter, I am not getting any error for this as well. After 60000ms I am getting a message socket closed.
-
Hi @vvarthan7 kindly post your error snip here.
-
@admin any updates here? WebSocket connection for nodejs is not working. Any workaround?
-
HI @NyctoNid @vvarthan7 we will update you on web socket issue at EOD.
-
Any update here? @NyctoNid can you please help me resolve this issue?
-
Hi @NyctoNid you can connect us for further issue as discussed on the call.
-
@admin
This is actual codelet web_socket = new WebSocketClient({ clientcode: "N199330", jwttoken: jwtToken, apikey: "GHfVT7N7", feedtype: "order_feed", }); web_socket.connect() .then(() => { web_socket.fetchData("subscribe", "order_feed"); // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed setTimeout(function () { web_socket.close() }, 60000) }); web_socket.on('tick', receiveTick); function receiveTick(data) { console.log("receiveTick:::::", data); }
-
@admin Sure!
-
Dear @NyctoNid we have noted your issue we will get back to you.