Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. aakash2610
    3. Best
    A
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 9
    • Best 1
    • Groups 0

    Best posts made by aakash2610

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

      posted in Python SDK
      A
      aakash2610