Navigation

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

    Posts made by NyctoNid

    • RE: How to get NSE and BSE Live Market Data in Nodejs

      @admin
      This is actual code

      let web_socket = new WebSocketClient({
          clientcode: "N199330",    
          jwttoken: jwtToken,
          apikey: "GHfVT7N7",
          feedtype: "order_feed",
      });
      
      web_socket.connect()
          .then(() => {
              web_socket.fetchData("subscribe", "order_feed");  // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed
      
              setTimeout(function () {
                  web_socket.close()
              }, 60000)
          });
      
      web_socket.on('tick', receiveTick);
      function receiveTick(data) {
          console.log("receiveTick:::::", data);
      }
      
      posted in Bugs
      N
      NyctoNid
    • RE: How to get NSE and BSE Live Market Data in Nodejs

      @admin Sure!

      posted in Bugs
      N
      NyctoNid
    • How to get NSE and BSE Live Market Data in Nodejs

      How to get live NSE and BSE Live data in Nodejs cause the code

      let web_socket = new WebSocketClient({
          clientcode: "CLIENT_CODE",    
          jwttoken: "jwt_token",
          apikey: "smartapi_key",
          feedtype: "order_feed",
      });
      
      web_socket.connect()
          .then(() => {
              web_socket.fetchData("ACTION_TYPE", "FEED_TYPE");  // ACTION_TYPE: subscribe | unsubscribe FEED_TYPE: order_feed
      
              setTimeout(function () {
                  web_socket.close()
              }, 60000)
          });
      
      web_socket.on('tick', receiveTick);
      
      
      function receiveTick(data) {
          console.log("receiveTick:::::", data);
      }
      
      

      is not working

      posted in Bugs
      N
      NyctoNid