Margin Calculation for FnO Basket Order

The current margin api seems to provide only margin based on existing portfolio.
However, for system we are developing, we need margin calculation of new covered positions.

So eg. lets say our system will suggest buying 1 Lot Nifty in future at 14500 and it suggests to buy a PE of lets strike say 14000

Of course the order has to be executed first buying put and then buying the future.

The problem is when we fetch the margin for future unless the position in Put is taken it does not allow us to show to our user the net margin requirement.

I think we need calculations like

So for buying covered position user to be charged with margin approx 70K and not 1.6 lac

Thanks & Regards,
Uma Shankar Goel
This discussion has been closed.