GTT order updates through web socket missing two important fields

In gtt_order web socket we are not getting trading_symbol and another important field is order_status field which says what is this update for. like created, modified, cancelled, rejected etc. We are receiving same data when we create gtt order or when we update it. How we can differentiate if update is received for new order or for modification?

Hi @Jagdish_j_ptl
In the GTT order WebSocket update, we provide the instrument_token, which corresponds to the instrument key for which the GTT order was placed. Using this you can get any instrument related value from the BOD json file. Instruments | Upstox Developer API

We also provide the order status for each leg. The possible status values are:
SCHEDULED, TRIGGERED, EXPIRED, OPEN, COMPLETED, CANCELLED, PENDING, FAILED, and INACTIVE.

You can handle this in the following way: GTT order IDs are unique, and you will receive a new order update only once—immediately after placing the order. All subsequent updates will pertain to modifications or status changes from the exchange.

Thanks!

You can add one field in response to specify what kind of update is this. is it new order or modified or cancelled. That will reduces multiple database queries or IO operations from user end. As to check status changes like modification or creation, we need to implement database system which could be easily avoided if you add one status field as you are already doing this in normal orders update web socket.