i am struck with one question. when i am placing a buy order in options, after completing the order, i am placing a GTT order. but once the GTT is completed. it is placing either an SL order or Target order in the order book. i am not able to relate it to the original trade as i am not finding any relation b/w the GTT completed and the sl/target order placed. can you explain how we can get the link between the GTT and sl/ target order placed after gtt completes.
@SRIJAN .. I think he means that after gtt is executed, and any order is placed, how can he link back the placed order to the gtt.
@TheBull .. not sure if there is an exact way to to do what you want, however if you see gtt structure, it has the order array, one of those orders would be placed after execution of gtt, so.. actually you know the orders even before they execute. In the same structure you will also find gtt_id.. so, I think if you perist this info somewhere, you should be good to go
@TheBull .. not sure if there is an exact way to to do what you want, however if you see gtt structure, it has the order array, one of those orders would be placed after execution of gtt, so.. actually you know the orders even before they execute. In the same structure you will also find gtt_id.. so, I think if you perist this info somewhere, you should be good to go