Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. swarup
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    swarup

    @swarup

    0
    Reputation
    13
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    swarup Follow

    Best posts made by swarup

    This user hasn't posted anything yet.

    Latest posts made by swarup

    • Approval for Trading Platform

      I gave made a Trading Platform using the SmartAPI. Now, How can I get the approval for the Trading Platform. Please Help me.

      posted in General Discussion
      S
      swarup
    • Data in close market

      How can i get data for symbols in closed market.

      posted in General Discussion
      S
      swarup
    • RE: get quotes index in sensex

      @swarup Can you give me hint to find the tokens.

      posted in Bugs
      S
      swarup
    • RE: get quotes index in sensex

      @admin I cannot find the symbols.

      posted in Bugs
      S
      swarup
    • RE: get quotes index in sensex

      @admin Can you tell me what is the token for sensex and india vix.

      posted in Bugs
      S
      swarup
    • 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.

      posted in Bugs
      S
      swarup
    • 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

      posted in Bugs
      S
      swarup
    • RE: get quotes index in sensex

      @admin I don't know what the tokens are. Please share the tokens for the indices

      posted in Bugs
      S
      swarup
    • RE: get quotes index in sensex

      @admin Yes. How can I do that....

      posted in Bugs
      S
      swarup
    • RE: get quotes index in sensex

      @admin

      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');
      
      posted in Bugs
      S
      swarup