Unable to reduce the margin amount after buying hedge

While deploying trades using AlgoRooms, I am selling one put and one call and manually buying one put and one call for 7 Rs. This should reduce the margin to some degree, but in my case, the whole trade amount is being charged as margin.

example 1 (trade placed in upstox directly): 1 put buy + 1 call buy + 1 put sell + 1 call sell = total margin required ~1.7L

example 2(buying is manual and selling is done from algorooms): 1 put buy + 1 call buy + 1 put sell + 1 call sell = total margin required ~3.1L

can someone please help how I can reduce the Margin.

Hi @CHINMAYA_42221194
Our API order placements follow the same margin rules as those in the Upstox mobile app and website. You can also check the required margin using the margin calculator: Upstox Margin Calculator.

If you are required to maintain a higher margin than what is mentioned in the margin calculator, you may contact the Algorooms support team for further investigation.

If they have any findings or if you need any other assistance, please feel free to comment on this thread.

Thanks!