Navigation

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

    Repeated breakdown of websocket

    Python SDK
    0
    6
    37
    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.
    • V
      vivekruhela last edited by

      Hi,

      I am trying to execute and monitor my trades using the python SDK module. But I am facing an issue of discontinuity of WebSockets consistently. Whenever I start my session, it shows an error [-3] after some time and stops working. First I doubt my wifi connection issue but there is no such issue in the internet connection. Can you suggest why ss.connect() shows an error (Error code: [-3]) and how to get consistent WebSocket output from 09:15 AM to 03:20 PM without any glitch. Thanks

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

        @vivekruhela Please use websocket 2.0 https://smartapi.angelbroking.com/topic/1861/user-feedback-websocket-2-0-beta-rollout-python-language?_=1654493657146

        V 4 Replies Last reply Reply Quote 0
        • V
          vivekruhela @admin last edited by

          @admin What is AUTH_TOKEN? Is it access_token generated obtained from obj.access_token?

          I tried putting access_token in AUTH_TOKEN but I am getting only one response as shown below:

          In on pong function==> b'ping'

          1 Reply Last reply Reply Quote 0
          • V
            vivekruhela @admin last edited by

            @admin What is AUTH_TOKEN? Is it access_token generated obtained from obj.access_token?

            I tried putting access_token in AUTH_TOKEN but I am getting only one response as shown below:

            In on pong function==> b'ping'

            1 Reply Last reply Reply Quote 0
            • V
              vivekruhela @admin last edited by

              @admin The issue of AUTH_TOKEN is solved but I am not able to get the price and volume in websocket 2.0. I am getting message In on pong function==> b'ping' consistently. Please suggest.

              1 Reply Last reply Reply Quote 0
              • V
                vivekruhela @admin last edited by

                @admin The issue of AUTH_TOKEN is solved but I am not able to get the price and volume in websocket 2.0. I am getting the error message In on pong function==> b'ping' consistently. Please suggest ASAP.

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