Navigation

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

    HeartBeats Failed

    General Discussion
    5
    40
    291
    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.
    • S
      Surya 1 @admin last edited by Surya 1

      @admin

      I have tested without running them on threads separate threads. It went well today.

      all my troubles appear when I use

      ss.connect(threaded=True)
      

      I also think this is the limitation on in unix based systems. I have modified the websocket.py to have reactor.run(installSignalHandlers=False) even one doesnt use the threaded=True.

      In case if this helps anyone.

      1 Reply Last reply Reply Quote 0
      • G
        gkmeena @Surya 1 last edited by

        @rajanprabu hi i want data like this can you give me code?

        S 1 Reply Last reply Reply Quote 0
        • S
          Surya 1 @gkmeena last edited by

          @gkmeena

          Which code ?

          G 1 Reply Last reply Reply Quote 0
          • G
            gkmeena @Surya 1 last edited by

            @rajanprabu
            ![alt text](Screenshot (45).png code for this kind of output)

            R 1 Reply Last reply Reply Quote 0
            • R
              rahul4019 @gkmeena last edited by

              @rajanprabu @admin
              I am getting the heartbeat failed message.
              I am wondering how do you re-establish the connection?
              Also even after the program has ended the heartbeat failed message keeps popping up.

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

                Hi @PandaTrade we will soon our web socket code we will keep you updated on this.

                1 Reply Last reply Reply Quote 0
                • S
                  Surya 1 @rahul4019 last edited by

                  @PandaTrade said in HeartBeats Failed:

                  Also even after the program has ended the heartbeat failed message keeps popping up.

                  Thats mainly because Heartbeart connection is running in separate thread. I have a parallel script running to check if there is any HB failure message. Once it find it will stop and restart the script. Of course this can be a issue if you use indicators using past data.

                  1 Reply Last reply Reply Quote 0
                  • R
                    rahul4019 last edited by

                    hi @admin
                    have you fixed your Tickdata web socket code?
                    To me it looks like working. Just want to confirm what are the fixes that you have done?

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      Surya 1 @rahul4019 last edited by

                      @PandaTrade

                      They released a new SDK.. But yet to try it.. will try in the evening with MCX data.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        rahul4019 @Surya 1 last edited by

                        @rajanprabu btw how do you update your sdk that you had downloaded already..
                        Could you point me to it.

                        R S 2 Replies Last reply Reply Quote 0
                        • R
                          rahul4019 @rahul4019 last edited by

                          @PandaTrade pip install websocket-client
                          i guess this should do it

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

                            HI @PandaTrade uninstall and install again.

                            1 Reply Last reply Reply Quote 0
                            • S
                              Surya 1 @rahul4019 last edited by

                              @PandaTrade

                              pip install smartapi-python --upgrade

                              should in general upgrade to latest version even if you have it installed already..

                              1 Reply Last reply Reply Quote 0
                              • R
                                rahul4019 last edited by

                                HeartBeats Failed
                                HeartBeats Failed

                                @admin i am still getting such messages.
                                Isn't the program supposed to work infinetely?
                                For me it got ended in 5 mins.

                                S 1 Reply Last reply Reply Quote 0
                                • S
                                  Surya 1 @rahul4019 last edited by

                                  @PandaTrade

                                  @PandaTrade said in HeartBeats Failed:

                                  HeartBeats Failed

                                  with new updated SDK ??

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    rahul4019 @Surya 1 last edited by

                                    @rajanprabu yes

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      Surya 1 @rahul4019 last edited by

                                      @PandaTrade

                                      Thats sad :(. Thanks for testing..

                                      1 Reply Last reply Reply Quote 0
                                      • R
                                        rahul4019 last edited by

                                        Hi @admin,
                                        from smartapiwebsocket import SmartWebSocket
                                        This is the import that is given in the examples section of github.
                                        When i try to use this it doesn't work.

                                        Could you let me know what are the imports that i need to do?
                                        FYI, earlier used this from smartapi import WebSocket;from smartapi import SmartConnect

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

                                          Hi @PandaTrade from smartapi import SmartWebSocket

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            rahul4019 @admin last edited by

                                            @admin

                                            2021-06-01 10:55:23.634091 : Start task in the background
                                            {'task': 'hb', 'channel': '', 'token': '092017127', 'user': 'X63314', 'acctid': 'X63314'}```
                                            hello @admin, 
                                            I am not getting tick data except the above response.
                                            could you please paste your sample code for the same.
                                            R 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post