i am using place_gtt (and also modify_gtt) in my code. Both work fine and i can see them under Active GTTs.
However when the price hits the trigger, the GTT is triggered but no orders are placed.
On the other hand if i go to positions, click on the 3 dots and click on create GTT this works properly (places orders) when the price is hit. please help me here.
Below are the codes i am using. I dont think there are any errors in the code as they get placed properly. the problem is when GTT is triggered but no orders placed:
You can go to kite web or app and check the gtt details screen or bottom sheet to know why order is not placed.
You need to look at order[].result.order_result
You can check the structure here.