Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Can't obtain order_feed

    Bugs
    4
    10
    50
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Ayush Kumar last edited by

      Using the SDK to make a websocket connection for order_feed doesn't work. I can see that websocket is connected, and if I send wrong details I get correct error response from the server. But when I place any orders on through the Website those aren't received by the client.

      A 1 Reply Last reply Reply Quote 0
      • A
        Ayush Kumar @Ayush Kumar last edited by

        let web_socket = require("ws");
        ws = new web_socket(url, null, { rejectUnauthorized: false });
        
        ws.onopen = function onOpen(evt) {
            setInterval(function () {
                 var _hb_req = '{"actiontype":"heartbeat","feedtype":"order_feed","jwttoken":"' + jwttoken + '","clientcode": "", "apikey": ""}';
                 console.log("heartbeat sent..")
                 ws.send(_hb_req);
            }, 60000);
            console.log("Opened...")
        
            var _req = '{"actiontype":"subscribe","feedtype":"order_feed","jwttoken":"' + jwttoken + '","clientcode": "", "apikey": ""}';
            ws.send(_req);
            console.log("Req sent...", _req)
        };
        ws.onmessage = function (evt) {
            console.log(evt);
            var result = evt.data;
            console.log(result);
        };
        ws.onerror = function (evt) {
            console.log("error::", evt)
            // self.connect();
            // reject(evt)
            console.log("On Reject ", evt)
        };
        ws.onclose = function (evt) {
            console.log("Socket closed")
        };
        
        A 1 Reply Last reply Reply Quote 0
        • A
          Ayush Kumar @Ayush Kumar last edited by Ayush Kumar

          I tried creating a websocket on my own still same problem, can someone help me understand the issue here?

          In the first place, has someone received ticks for orders placed through UI?
          Please correct me if I'm wrong with my understanding of Websocket Order Status

          A 1 Reply Last reply Reply Quote 0
          • A
            admin @Ayush Kumar last edited by

            Hi @Ayush-Kumar our team is working on the above mentioned issue. We will update you soon once it is fixed.

            A 1 Reply Last reply Reply Quote 0
            • A
              Ayush Kumar @admin last edited by

              @admin thanks for the update!

              1. Can you share any timeline as to when this issue will be fixed?
              2. Is there some other language SDK which supports WebSockets and works currently? Both Python and Node didn't seem to work for me.
              S 1 Reply Last reply Reply Quote 0
              • S
                sathish14tcet @Ayush Kumar last edited by

                @Ayush-Kumar I am also getting facing same issue it the issue resolved?

                A 1 Reply Last reply Reply Quote 0
                • A
                  admin @sathish14tcet last edited by

                  Hi @sathish14tcet @Ayush-Kumar we are testing it from our side we will soon update the sdk.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mukesh last edited by

                    @admin said in Can't obtain order_feed:

                    We will update you soon once it is fixed

                    Any updates on the fix, facing same issue. Able to connect to websocket, but there is no responds for new order placed from Angel Terminal.

                    A 2 Replies Last reply Reply Quote 0
                    • A
                      admin @mukesh last edited by

                      This post is deleted!
                      1 Reply Last reply Reply Quote 0
                      • A
                        admin @mukesh last edited by

                        HI @R70693 Currently we are working on it.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post