How to place orders without blocking the funds?

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.

Hello @Sukhdev_Kale

Dhan has GTT orders, but here it is called Forever Order.

On the web, click on the company page (not charts) and under the sparkline intraday chart you will see an option of Forever Order.

Order flow looks weird but it has been this way since eternity like a hidden treasure.

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.

I don’t think that’s the scenario here. They put up the fund addition dialogue so the user knows the total shortfall.

Whichever price level comes first, if you have the money that will execute first and the rest will be rejected.

Actually, it’s not the case. It doesn’t execute any orders if there are no funds for all the orders.

The best man to look into this is @PravinJ

Hello @Sukhdev_Kale

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.

1 Like