I gave made a Trading Platform using the SmartAPI. Now, How can I get the approval for the Trading Platform. Please Help me.
swarup
@swarup
Best posts made by swarup
Latest posts made by swarup
-
Approval for Trading Platform
-
RE: get quotes index in sensex
@swarup Can you give me hint to find the tokens.
-
RE: get quotes index in sensex
@admin Can you tell me what is the token for sensex and india vix.
-
RE: get quotes index in sensex
@swarup Hi, Some update I want to give. I again downloaded the script.json file.
From https://margincalculator.angelbroking.com/OpenAPI_File/files/OpenAPIScripMaster.json
Then converted to csv file.
After opening it in Excel I found some tokens which are,[ {"NIFTY IT" : "26008"},{"NIFTY 100": "26012"},{"NIFTY MIDCAP 50": "26014"}]
I search a lot but can't find the correct tokens.
Intersecting thing is that nifty it and nifty 100 have symbols with CNXIT and CNX100 which is similar to yahoo finance symbol. But what about the other symbols. Mainly SENSEX.
Thank you in advance. -
RE: get quotes index in sensex
@swarup I have another question also. As per the documentation I have to pass 'sfi' for index feed but when I pass 'sfi' task. I am unable to get values. As per my code, After 3 sec I get a message in console, 'socket closed'. I tried my many times but in vain
-
RE: get quotes index in sensex
@admin I don't know what the tokens are. Please share the tokens for the indices
-
RE: get quotes index in sensex
let socket={}; soket.index=function (userid,feedtoken){ let { SmartAPI, WebSocket } = require("smartapi-javascript"); let web_socket = new WebSocket({ client_code: userid, feed_token: feedtoken }); web_socket.connect() .then(() => { web_socket.runScript("nse_cm|26000&nse_cm|26009", "mw") setTimeout(function () { web_socket.close() }, 3000) }) web_socket.on('tick', receiveTick); function receiveTick(data) { console.log("receiveTick:::::", data) } } //Now I am calling the function socket.index('my userid','feed token I get from login');