Navigation

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

    order update via websocket

    Python SDK
    2
    5
    85
    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 last edited by

      Has any python users tried to get order status via websocket service that Angel introduced ??

      https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

      I would appreciate any feedback.

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

        @rajanprabu , I am trying to find documentation, but no luck.

        @admin , Is websocket order status available for python SDK ?

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

          @Ashok

          Documentation is here..

          https://smartapi.angelbroking.com/docs/WebSocketOrderStatus

          I wanted to know if anyone tried.. I don't think its part of SDK...

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

            @rajanprabu Yes I went through the doc. I am not an expert on WS. I could only manage the below message.

            --- request header ---
            GET /websocket?jwttoken=eyJhbGciOiJIUzUxMiJ9.eyJ1c2VybmFtZSI6IlJFSFIxMDEwIiwicm9sZXMiOjAsInVzZXJ0eXBlIjoiVVNFUiIsImlhdCI6MTYyMzM0ODcwOSwiZXhwIjoxNzA5NzQ4NzA5fQ.XEKGiocjQDY6nMHRuvMiQXGscnmylFRZz_LB4qCskCcmz08S4ZIx80MkmO_b7DXoSfa0Xb43OZD8cBcv909k7w&&clientcode=xxxxxx&&apikey=yyyyyyyy&&actiontype=subscribe&&feedtype=order_feed HTTP/1.1
            Upgrade: websocket
            Connection: Upgrade
            Host: smartapisocket.angelbroking.com
            Origin: http://smartapisocket.angelbroking.com
            Sec-WebSocket-Key: ItXolb52NK2KVz8oYL2Y+g==
            Sec-WebSocket-Version: 13
            
            
            -----------------------
            --- response header ---
            HTTP/1.1 101
            Upgrade: websocket
            Connection: upgrade
            Sec-WebSocket-Accept: HOqF/HdYAIep52hMxwA+fWT1vWM=
            Date: Thu, 10 Jun 2021 18:29:42 GMT
            -----------------------
            

            When I placed/cancelled orders, no response was received. (I tried in off market time). Also doc says heartbeat needs to be sent by client. have you manage to get this work?

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

              @Ashok

              I haven't tried it yet. But im interested in trying out. Did you try this in Python ?

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