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.
    • D
      dharm @smitshahfo last edited by

      @vrkhyd how can you get the live data?
      I am facing the same issue

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

        @whemant Hi,
        send a mail to vemula.ramkishore@gmail.com

        1 Reply Last reply Reply Quote 0
        • D
          dharm @Ankita last edited by

          @Ankita do you get any solution on this issue?
          If Yes so help me

          L 1 Reply Last reply Reply Quote 0
          • L
            Linux Smiths @dharm last edited by

            @dharm change the function as following

            @staticmethod
            def _parse_token_value(binary_packet):
                token = ""
                binary_packet = binary_packet.decode("UTF-8")
                for i in range(len(binary_packet)):
                    if binary_packet[i] == '\x00':
                        return token
                    token += str(binary_packet[i])
                return token
            
            1 Reply Last reply Reply Quote 0
            • L
              Linux Smiths last edited by

              What is total_buy_quantity and total_sell_quantity?
              When are they different? I mean whatever is bought is sold as well. Thanks.

              L 1 Reply Last reply Reply Quote 0
              • L
                Linux Smiths @Linux Smiths last edited by

                nvm, I gather that this is the amount of pending buy and sell orders at the Exchange.

                1 Reply Last reply Reply Quote 0
                • A
                  ashigro @sathyaraj last edited by

                  @sathyaraj
                  We can fix this error by updating _on_close method with additional arguments in SmartWebSocketV2.py file.

                  def _on_close(self, wsapp**, close_status_code, close_msg**):

                  <Error: SmartWebSocketV2._on_close() takes 2 positional arguments but 4 were given>
                  This error is thrown because on_close method of websocket class takes multiple arguments which are missing in SmartWebSocket library. Example code:
                  https://websocket-client.readthedocs.io/en/latest/examples.html

                  1 Reply Last reply Reply Quote 0
                  • J
                    jaideep siddula @DIYD57519 last edited by

                    @DIYD57519 Im no getting on open. Instead, I'm getting "attempting to resubscibe/reconnect". Any help is appreciated.
                    Thanks in advance

                    D 2 Replies Last reply Reply Quote 1
                    • D
                      DiljotSingh11 @jaideep siddula last edited by

                      Hi @jaideep-siddula , I'm also having the same issue, have you found the solution?

                      1 Reply Last reply Reply Quote 1
                      • D
                        DiljotSingh11 @jaideep siddula last edited by

                        @jaideep-siddula @DIYD57519, I'm also getting "attempting to resubscibe/reconnect", is there any solution, as I've drilled a bit and got Handshake status 404 not found.

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