Navigation

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

    SmartWebSocketOrderUpdate is not giving order updates placed using mobile app

    Python SDK
    0
    4
    20
    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.
    • A
      aakash2610 last edited by

      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?

      M 1 Reply Last reply Reply Quote 1
      • M
        Moderator_3 @aakash2610 last edited by

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

        V 1 Reply Last reply Reply Quote 0
        • V
          vishwendramore @Moderator_3 last edited by

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

          1 Reply Last reply Reply Quote 0
          • L
            lgupta1 last edited by

            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.

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