Navigation

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

    User Feedback - WebSocket 2.0 Beta Rollout – Python Language

    Python SDK
    0
    45
    2246
    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
      Ankita @admin last edited by

      @admin
      I am getting ticks in bytes like below. how to decode. not able to decode this anyway

      b'\x02\x05236771\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x001W"\x00\x00\x00\x00\x00\xc8\xea\xb0j\x80\x01\x00\x00\x80\xd4\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x16\xd3\x00\x00\x00\x00\x00\x00\x9dc\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x90@\x00\x00\x00\x00\x00(\x89@F\xd2\x00\x00\x00\x00\x00\x00f\xd5\x00\x00\x00\x00\x00\x00\x1a\xd1\x00\x00\x00\x00\x00\x00\xb2\xd4\x00\x00\x00\x00\x00\x00'

      D 1 Reply Last reply Reply Quote 0
      • N
        N399438 last edited by

        @admin said in User Feedback - WebSocket 2.0 Beta Rollout – Python Language:

        ws://smartapisocket.angelone.in/smart-stream

        How do I unsub a script and add another

        1 Reply Last reply Reply Quote 0
        • N
          N399438 @admin last edited by

          @admin
          How do I unsub a script and add another

          1 Reply Last reply Reply Quote 0
          • N
            N399438 last edited by

            How do I unsub a script and add another

            1 Reply Last reply Reply Quote 0
            • J
              J88913 last edited by

              Can anyone tell me what modules I have to install. When I run the codes following message occurred from "SmartApi.smartWebSocketV2 import SmartWebSocketV2
              ModuleNotFoundError: No module named 'SmartApi'". And when trying to install SmartApi module following error occurred " ERROR: Command errored out with exit status 1: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\JP\AppData\Lo
              cal\Temp\pip-install-bmd4tanj\pycrypto_3cd0936adc594488ab991db614b3c888\setup.py'"'"'; file='"'"'C:\Users\JP\AppData\Local\Temp\pip-install-bmd4tanj\py
              crypto_3cd0936adc594488ab991db614b3c888\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from se
              tuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record '
              C:\Users\JP\AppData\Local\Temp\pip-record-h0mix75_\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\PyCrypto' Check the logs for full command output. "

              D 1 Reply Last reply Reply Quote 0
              • J
                Javajp last edited by

                Hi @admin,
                In general, Even if hearbeat issue occurs, pls provide a way to clean up websocket & create new websocket OR some kind of self healing stuff.

                1 Reply Last reply Reply Quote 0
                • J
                  J88913 last edited by

                  @admin I am getting following error in smartWebSocketv2Example.py on open
                  In on pong function==> b'ping'
                  In on pong function==> b'ping'

                  Not able to fetch any data.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    azkhan @J88913 last edited by

                    Hi @admin,
                    I am also getting the same msg "In on pong function==> b'ping'".
                    Any reason why I am not able to fetch data ?

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zubuco @azkhan last edited by

                      @azkhan
                      same here,any solution.

                      on open
                      In on pong function==> b'\x00'
                      In on pong function==> b'\x00'
                      In on pong function==> b'\x00'
                      Attempting to resubscribe/reconnect...
                      Close
                      Close

                      Z 1 Reply Last reply Reply Quote 0
                      • Z
                        zubuco @zubuco last edited by

                        @zubuco said in User Feedback - WebSocket 2.0 Beta Rollout – Python Language:

                        @azkhan
                        same here,any solution.

                        on open
                        In on pong function==> b'\x00'
                        In on pong function==> b'\x00'
                        In on pong function==> b'\x00'
                        Attempting to resubscribe/reconnect...
                        Close
                        Close
                        sometimes its saying NO module as SmartApi

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          anil_patel last edited by anil_patel

                          @admin @administrators getting error "sent 1011 (unexpected error) keepalive ping timeout; no close frame received" in async websockets python module.

                          error while send ping. because websockets module by default send Ping with Random Binary 4 Bytes and we have to send "ping" as ping Payload. so help me to resolve the issue.

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

                            HI @Ankita @J88913 @azkhan @zubuco The ping pong issue is resolved by one of the early adopter and a loyal SmartAPI client @rajanprabu here - https://smartapi.angelbroking.com/topic/2570/websocket-2-0?_=1667760289934. Thank you @rajanprabu

                            Z 2 Replies Last reply Reply Quote 0
                            • Z
                              zubuco @admin last edited by zubuco

                              @admin
                              still not working

                              1 Reply Last reply Reply Quote 0
                              • Z
                                zubuco @admin last edited by

                                @admin
                                still not wroking

                                punit 1 Reply Last reply Reply Quote 0
                                • punit
                                  punit @zubuco last edited by

                                  @zubuco Still struck ?

                                  Z 1 Reply Last reply Reply Quote 0
                                  • Z
                                    zubuco @punit last edited by

                                    @Ashok now wroking

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      smitshahfo last edited by

                                      Hi @admin,
                                      I am running websocket V2.0. for every 30 sec's its landing in pong function. I have subscribed only one token while running the below.

                                      its consistent even with other token. Please look into this.

                                      27d823f6-c769-4662-a45a-9057695a97b1-image.png

                                      punit W 2 Replies Last reply Reply Quote 1
                                      • punit
                                        punit @smitshahfo last edited by

                                        @vrkhyd It looks like heartbeat message. you can ignore it.

                                        S 2 Replies Last reply Reply Quote 1
                                        • S
                                          smitshahfo @punit last edited by

                                          @Ashok ok Thank you.

                                          Sometimes its printing the same message. multiple times. does it mean no response from server.

                                          1 Reply Last reply Reply Quote 1
                                          • S
                                            smitshahfo @punit last edited by

                                            @Ashok 9337ad13-a3c1-46e0-928c-7913d2a60f96-image.png

                                            punit M 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post