Hi @Hardik
Websocket is not returning data for spot index but returns data for all other instruments like futures/options or cash equities. Is it that websocket returns data of only traded instruments?
Regards
Hi @Hardik
Websocket is not returning data for spot index but returns data for all other instruments like futures/options or cash equities. Is it that websocket returns data of only traded instruments?
Regards
Hello @Sujit_Modi ,
Please note that WebSocket also returns data for index instruments such as Nifty and Bank Nifty spot. You can refer to this link for details: Live Market Feed - DhanHQ Ver 2.0 / API Document and pass the exchange segment as IDX_I.
If you are using the Python code provided on our GitHub, use the below configuration under instruments:
instruments = [(MarketFeed.IDX, "13", MarketFeed.Ticker)]
This will ensure you receive live data for the index as well.
Got it…thanks