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.