I want to get indices data such as NIFTY, BANKNIFTY, SENSEX etc. in websocket. But i don’t see any symbol in the symbol chart, how can i subscribe to these indices.
To get data for these index first get the listing_id of them. It can be obtained if you just do simple quote for them.
Next once that is done, you can subscribe by passing listing_id where you pass symbol_code.
Example -21 is listing_id for Nifty 50.
Try to use that.
Hi so i am trying to get the index data by the below code but not getting error instead of any data response
symbol_stream=[{“symbol”:“-21”}]
samco.set_streaming_data(symbol_stream)
samco.start_streaming()
can you help out?