Hi, I tried the api /margins/orders to calculate the margin requirement for the list of orders. It is responding with margin required by corresponding orders as if they all are exclusive. How can I get the final margin requirement , if all the orders in list are to executed at once?
e.g. for buying BANKNIFTY2110730900PE @ 25 x 25 and selling BANKNIFTY2110731300PE @ 50 x 25 I am getting reponse as margin requirement is BANKNIFTY2110730900PE 621.25 BANKNIFTY2110731300PE 41164.45
while I want combined margin requirement for the spread.
is there any api or some calculation which i can done on my side?