I am creating an algorithm. I’m facing problems placing gtt orders. I guess there is no gtt option in Dhan. can anyone guide me on how to place trigger orders without blocking the funds?
I place multiple gtt orders in zerodha. It does not even care if i funds in the account, and executes all the possible orders with the available funds at the time of execution.
If I place two forever orders to trigger at some point, the orders will be executed only when I have funds for “both” orders; else, none of them will be successful. All orders fail here if funds aren’t sufficient for “all” forever orders.
GTT in zerodha executes all the orders that can be executed with available funds; and marks others with failed due to insufficient funds.
As @thisisbanerjee pointed out, although the total margin shortfall is shown in the frontend, if and when the forever order is triggered, they will be placed on the exchange.
This means, whichever price level comes first, the order will be placed on having sufficient available margin.