Navigation

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

    How to read order status and update in own app. SmartWebSocketOrderUpdate

    Python SDK
    0
    4
    28
    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.
    • P
      Poonam Tomar last edited by

      @admin I am not able to read and process the data through SmartWebSocketOrderUpdate method. I am able to connect client and receiving the some tick message but now sure were I actually got the real message and process it further. SmartWebSocketOrderUpdate.png

      client = SmartWebSocketOrderUpdate(AUTH_TOKEN, API_KEY, CLIENT_CODE, FEED_TOKEN)

      threading.Thread(target = client.connect).start()

      Like I am able to do in reading the strike price data in websocket

      def on_data(wsapp, message):
      print("Ticks: {}".format(message))
      LIVE_FEED_JSON[message['token']] = {'token': message['token'],
      'ltp':message['last_traded_price']/100,
      'o':message['open_price_of_the_day']/100,
      'h':message['high_price_of_the_day']/100,
      'l':message['low_price_of_the_day']/100}

      M 1 Reply Last reply Reply Quote 0
      • M
        Moderator_3 @Poonam Tomar last edited by

        Hello @Poonam-Tomar
        Can you please confirm like whether you have placed any order on the same day or any pending orders
        Regards,
        SmartAPI Team

        P 1 Reply Last reply Reply Quote 0
        • P
          Poonam Tomar @Moderator_3 last edited by

          @Moderator_3 . I got the bit better understanding that whenever any order get executed then only it is reading the data otherwise it keep on checking the order update.

          Now my another puzzle is, if some order got executed and it got order information then how to read and further process that order for further use. means in which function i can do that. One simple example would help me.

          M 1 Reply Last reply Reply Quote 0
          • M
            Moderator_3 @Poonam Tomar last edited by

            Hello @Poonam-Tomar
            We have rised this issue to our tech team and we will get back to you soon
            Regards,
            SmartAPI Team

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