Unable to fetch the symbol token for sensex.
-
I want to display the latest value of Sensex and Nifty in my app. I am calling all instrument JSON file to get the symbol token and then I am using those symbol tokens in the web socket.
For nifty the symbol token is 26000 and I am passing nse_cm|26000 in the web socket to fetch the value and I am getting it correctly.
But for Sensex, I am unable to get the symbol token. @admin can you please share the symbol token of Sensex or any other way to display the Sensex price in my app. I think I am pretty sure that all instrument JSON file doesn't provide the symbol token for Sensex.
I am using this link to get the symbol token of all the instruments.
https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
-
HI @keval-promact We only provide the data for the symbols which are present in our instrument json.
-
@admin then how you guys are showing the Sensex values in your portal and mobile app?
-
HI @keval-promact Pass task as "sfi" and token as "SENSEX".
-
@admin thanks this is working fine when the market is live and the socket is connected. How will I be able to fetch the last value of Sensex when the market is not live?
-
HI @keval-promact You can save it from your end by writing your own piece of code.