SmartWebSocketOrderUpdate is not giving order updates placed using mobile app


  • 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?


  • I am facing the same issue.
    I have created an after marker order (AMO) and have done some updates to it for testing. But on the websocket I do not get any message indicating that an order has been created or modified.


  • @Moderator_3 Is there any update? I am also facing the same issue. placed order and cancelled order is not reflected in smartwebsocketorderupdate.


  • Hello @aakash2610
    Can you please confirm like is there any open order is present at that time
    Regards,
    SmartAPI Team