Margin Update Delay at Zerodha & Dhan

As an AP of Dhan I have clients coming from zerodha who were flagging order failures at Dhan due to margin availability issues (me included). The specific scenario is this

If we close a position that blocked margin and try to open a new position that blocks margin, the new order fails if there is not enough margin to hold both the first and second positions together.

Today I did an experiment to check margin update delay at zerodha - Open a position with funds just enough to hold a margin blocked position. Then set a basket order to close that position and open a new position (margin requirement same as orginal position). Execute it and then we can see if an order leg fails due to margin update delay.

Zerodha order also failed. This means if we don’t have sufficient funds to hold both open and closed position then it will fail in both Zerodha and Dhan. This happens if orders are sent fast in sequence without respecting the margin update delay between orders.

In short the inference is that Dhan is not having any excessive margin update delay issue (atleast now with all the recent upgrades to infra and bug fixes). Margin update delay is under 55ms at Dhan.

@PravinJ @Alok_Pandey @Naman apologise for not testing with Zerodha earlier. Appreciate your patient support on this issue thus far.

@VijayNair @Castelinojason guess we can now rest this case.

2 Likes

There’s one fundamental flaw in this testing video, @t7support

As you have placed a limit order with the 1st leg pending, the 2nd leg will be automatically rejected. Try placing a market order for both the legs, your order will go through. I follow this strategy regularly, hence was surprised that it is wrongly tested here.

2 Likes

Oops accidently put limit order in zerodha basket. It’s been couple years since I used zerodha. Didn’t hit me till you pointed that out @BNF_japan. Nice catch !!!

I stand corrected. Zerodha orders went fine with market order set for both legs in basket. @PravinJ @Alok_Pandey @Naman pls look into how Dhan can execute the orders without failures in the scenario mentioned.

3 Likes