I am using python sdk version 1.4.8. Added my code below. Websocket is getting connected properly.
AUTH_TOKEN = authToken
API_KEY = api_key
CLIENT_CODE = clientId
FEED_TOKEN = feedToken
client = SmartWebSocketOrderUpdate(AUTH_TOKEN, API_KEY, CLIENT_CODE, FEED_TOKEN)
client.connect()
Response:
[I 240514 22:55:36 smartWebSocketOrderUpdate:38] Connection opened
[I 240514 22:55:36 smartWebSocketOrderUpdate:32] Received message: {"user-id": "xxxxxxx","status-code": "200","order-status": "AB00","error-message": "","orderData": {"variety": "","ordertype": "","ordertag": "","producttype": "","price": 0.0,"triggerprice": 0.0,"quantity": "0","disclosedquantity": "0","duration": "","squareoff": 0.0,"stoploss": 0.0,"trailingstoploss": 0.0,"tradingsymbol": "","transactiontype": "","exchange": "","symboltoken": "","instrumenttype": "","strikeprice": 0.0,"optiontype": "","expirydate": "","lotsize": "0","cancelsize": "0","averageprice": 0.0,"filledshares": "","unfilledshares": "","orderid": "","text": "","status": "","orderstatus": "","updatetime": "","exchtime": "","exchorderupdatetime": "","fillid": "","filltime": "","parentorderid": ""}}
[I 240514 22:55:56 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:06 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:16 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:26 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:36 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:46 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:56:56 smartWebSocketOrderUpdate:32] Received message: b'\x00'
[I 240514 22:57:06 smartWebSocketOrderUpdate:32] Received message: b'\x00'
When I am placing an order using app on same account, there is no update received on this socket. Is there any issue with code or is there any limitation of order status websocket that I am missing out on?