How to subscribe to nifty index through websocket
-
Hi Team
I want to subscribe to nifty index but not FnO.
What script should i use for the same.
I tried with below script combination but not getting any data
script: 'nse_fo|26000'
script: 'nse_cm|26000'for both of the above script i am getting response as given below
receiveTick::::: [ { tvalue: '24/02/2021 10:26:20', name: 'tm' } ] -
@James-Bond I subscribed to nifty 50 and nifty bank but I want to subscribe sensex, nifty pharma, nifty it, nifty metal, so on..
I can't find the token. Please help me. -
@James-Bond Thanks..
-
@rajanprabu
Please find attached screenshots for reference:https://ibb.co/RpvYjBv
https://ibb.co/kBjvbJkIf you have any issue to access WS, let me know.
-
@James-Bond @rajanprabu
Thank you. -
@rajanprabu Yes, I'm using same tokens to subscribe index through WS.
I'll attach live streaming screenshot tomorrow for further reference.
-
Could you please confirm if you are using these tokens 26009 and 26000 for that..
-
@vishnuvijayp31
Yes, it's possible. You'll get LTP through WebSocket -
I thinks its this entry
{"token":"26009","symbol":"BANKNIFTY","name":"BANKNIFTY","expiry":"","strike":"-1.000000","lotsize":"-1","instrumenttype":"","exch_seg":"NSE","tick_size":"-1.000000"} {"token":"26000","symbol":"NIFTY","name":"NIFTY","expiry":"","strike":"-1.000000","lotsize":"-1","instrumenttype":"","exch_seg":"NSE","tick_size":"-1.000000"}
-
@James-Bond Is it possible to subscribe to NIFTYBANK index through python api?
-
@rajanprabu
I agree with you.@admin
Please remove this limit as we're not able to help other due to this limit.@rajanprabu said in How to subscribe to nifty index through websocket:
reputation system please
@admin Also enable reputation sys.
-
This post is deleted! -
Please remove this time limit for experienced users and enable the reputation system please.
-
you mean token number 26000 ?? I'm also waiting for open and oi to be broadcasted via web sockets.
-
Hello Sir, I think now it's possible to subscribe index through WebSocket. Correct me if I'm wrong.
Thank you ~
-
This post is deleted! -
Are you using Python SDK ?
If yes, then you can subscribe to Nifty Index. -
@raoulnair As for as I know indicates are not broadcasted via API yet