Navigation

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

    vvarthan7

    @vvarthan7

    0
    Reputation
    7
    Posts
    1
    Profile views
    1
    Followers
    0
    Following
    Joined Last Online

    vvarthan7 Follow

    Best posts made by vvarthan7

    This user hasn't posted anything yet.

    Latest posts made by vvarthan7

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

      @admin the feed is not having the correct response structure. Unable to get LTP.

      [{"ak":"ok","task":"cn","msg":"connected"}][][{"tvalue":"18/05/2021 14:20:53","name":"tm"},{"to":"8962863338.88","lo":"1972.50","e":"nse_cm","sp":"1992.15","c":"1960.35","ltp":"1992.00","ltq":"9","tk":"2885","bs":"7","ltt":"18/05/2021 14:20:52","tsq":"586609","v":"4508664","bp":"1992.00","cng":"31.65","bq":"82","ap":"1987.92","nc":"01.6145","name":"sf","tbq":"373643"}][{"e":"nse_cm","name":"sf","ltp":"1992.00","ltq":"1","tk":"2885","ltt":"NA"}][{"tvalue":"18/05/2021 14:20:54","name":"tm"},{"to":"8962865326.80","lo":"1972.50","e":"nse_cm","sp":"1992.15","c":"1960.35","ltp":"1992.00","ltq":"1","tk":"2885","bs":"7","ltt":"18/05/2021 14:20:53","tsq":"586600","v":"4508665","bp":"1992.05","cng":"31.65","bq":"1","ap":"1987.92","nc":"01.6145","name":"sf","tbq":"373462"}][{"tvalue":"18/05/2021 14:20:55","name":"tm"},{"to":"8962968698.64","lo":"1972.50","e":"nse_cm","sp":"1992.15","c":"1960.35","ltp":"1992.15","ltq":"2","tk":"2885","bs":"7","ltt":"18/05/2021 14:20:54","tsq":"586600","v":"4508717","bp":"1992.00","cng":"31.80","bq":"101","ap":"1987.92","nc":"01.6222","name":"sf","tbq":"373462"}][{"e":"nse_cm","name":"sf","ltp":"1992.15","ltq":"2","tk":"2885","ltt":"NA"}][{"e":"nse_cm","name":"sf","ltp":"1992.00","ltq":"15","tk":"2885","ltt":"NA"}][{"tvalue":"18/05/2021 14:20:56","name":"tm"},{"to":"8963103877.20","lo":"1972.50","e":"nse_cm","sp":"1992.15","c":"1960.35","ltp":"1992.00","ltq":"30","tk":"2885","bs":"7","ltt":"18/05/2021 14:20:55","tsq":"586809","v":"4508785","bp":"1992.00","cng":"31.65","bq":"170","ap":"1987.92","nc":"01.6145","name":"sf","tbq":"373505"}][{"e":"nse_cm","name":"sf","ltp":"1992.15","ltq":"1","tk":"2885","ltt":"NA"}][{"tvalue":"18/05/2021 14:20:57","name":"tm"}][{"to":"8963133696.00","lo":"1972.50","e":"nse_cm","sp":"1992.05","c":"1960.35","ltp":"1992.15","ltq":"13","tk":"2885","bs":"5","ltt":"18/05/2021 14:20:56","tsq":"586803","v":"4508800","bp":"1992.00","cng":"31.80","bq":"269","ap":"1987.92","nc":"01.6222","name":"sf","tbq":"373878"}][{"e":"nse_cm","name":"sf","ltp":"1992.15","ltq":"13","tk":"2885","ltt":"NA"}][{"tvalue":"18/05/2021 14:20:58","name":"tm"}][{"to":"8963159538.96","lo":"1972.50","e":"nse_cm","sp":"1992.05","c":"1960.35","ltp":"1992.00","ltq":"1","tk":"2885","bs":"55","ltt":"18/05/2021 14:20:58","tsq":"586724","v":"4508813","bp":"1992.00","cng":"31.65","bq":"332","ap":"1987.92","nc":"01.6145","name":"sf","tbq":"374092"}][{"e":"nse_cm","name":"sf","ltp":"1992.05","ltq":"5","tk":"2885","ltt":"NA"}]
      

      This is how the response looks now. Also meanwhile the new WebSocket implementation is not working at all.

      posted in Bugs
      V
      vvarthan7
    • RE: How to get NSE and BSE Live Market Data in Nodejs

      @admin the old WebSocket code seems to be working. Just wanted to know until what time I will get data in WebSocket? is it till 3:20 pm?

      posted in Bugs
      V
      vvarthan7
    • RE: How to get NSE and BSE Live Market Data in Nodejs

      @admin I am not getting any error. But when I checked the promise is not getting resolved.

      let web_socket = new WebSocketClient({
          clientcode: "V27127",    
          jwttoken: jwtToken,
          apikey: "85hgcaVa",
          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);
        }
      

      When I tried to remove the feed type parameter, I am not getting any error for this as well. After 60000ms I am getting a message socket closed.

      posted in Bugs
      V
      vvarthan7
    • RE: How to get NSE and BSE Live Market Data in Nodejs

      @admin any updates here? WebSocket connection for nodejs is not working. Any workaround?

      posted in Bugs
      V
      vvarthan7
    • RE: How to get NSE and BSE Live Market Data in Nodejs

      Any update here? @NyctoNid can you please help me resolve this issue?

      posted in Bugs
      V
      vvarthan7
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Hi, @admin please migrate V27127 to the new system.

      posted in General Discussion
      V
      vvarthan7
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      @admin, getting "Login Id or password is invalid" error. Client ID "V27127". Please provide access rights for using API.

      posted in General Discussion
      V
      vvarthan7