calculation of margin requirement for list of orders

zhkas
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?

Thanks
  • rakeshr
    How can I get the final margin requirement , if all the orders in list are to executed at once?
    No for now you can't. Currently, we haven't added Basket Order APIs for Kite connect users. We will add this soon and announce the same.
  • rakeshr
    @zhkas
    We have added the basket margin APIs. You can refer to the documentation here.
  • zhkas
    thanks, it really helps :)
This discussion has been closed.