Hi, we have to catch the event when the SELL (the order with Trigger price) order is placed for a CO order. So can you please specify the event or some link between BUY and SELL (trigger) order to find out whether the SELL (trigger) order was placed or not? We want to know how should we obtain the new order_id for the order triggered.
Hi @RA5800, After placing a cover order, you will get an order_id which will be same as parent_order_id of second leg SELL order(SL-M). When an order is executed Kite will send you a postback. You can check out documentation for postbacks here.
We have created desktop applications . In the documentation, it is related to webhooks . Can you please elaborate exactly which function of Kite or Order , we should call or define.
Hi, In developers console, you need to specify a postback URL to which Kite will make a post request when an order is executed and your endpoint will have to accept the data coming in. In simple words, it is like a notification sent to the client to notify that order has been executed and orderbook should be updated. This feature requires a remote setup for now. In future, we are planning to send postbacks on Websockets API wherein you don't have to setup remote server.
After placing a cover order, you will get an order_id which will be same as parent_order_id of second leg SELL order(SL-M).
When an order is executed Kite will send you a postback.
You can check out documentation for postbacks here.
In developers console, you need to specify a postback URL to which Kite will make a post request when an order is executed and your endpoint will have to accept the data coming in.
In simple words, it is like a notification sent to the client to notify that order has been executed and orderbook should be updated.
This feature requires a remote setup for now.
In future, we are planning to send postbacks on Websockets API wherein you don't have to setup remote server.