order update via websocket
-
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.
-
I haven't tried it yet. But im interested in trying out. Did you try this in Python ?
-
@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?
-
Documentation is here..
https://smartapi.angelbroking.com/docs/WebSocketOrderStatus
I wanted to know if anyone tried.. I don't think its part of SDK...
-
@rajanprabu , I am trying to find documentation, but no luck.
@admin , Is websocket order status available for python SDK ?