Technical API Flow Exit Cover Order at Take Profit Price

zerodhaVyankatesh
Hello Team,

From the technical (API and orderIDs) perspective, can someone please guide me on the flow for opening and exiting the cover orders? I'm little confused whether I need to follow below path and how to achieve some of the points mentioned here:

Price reaches take profit > retrieve all orders > how to check pending SL cover order and it's ID > how to relate it with parent executed cover order > whether to exit pending SL order when price reaches take profit or exit the opened (executed) order when price reaches take profit

Please feel free to provide any relevant documentation or code examples that could help clarify the flow.

++ @sujith @rakeshr

Thanks,
  • rakeshr
    retrieve all orders > how to check pending SL cover order and it's ID > how to relate it with parent executed cover order
    You can check for the required order_type field from the order book to filter out. Cover order will have parent_order_id field. Go through the documentation here.
Sign In or Register to comment.