Does margin calculation happen at broker level or exchange level?

suprxd
I am trying to write code for hedge selling since Zerodha API doesn't provide basket order creation/execution.

For hedged option selling, the margin requirement that is shown does it happen at broker level?
What I mean by that is when I place my "buy" side order, I receive a order id from zerodha. Can I place my "sell" side order right after I receive success response from order placement API or should I wait for order to complete from exchange?

Please help @sujith
Tagged:
This discussion has been closed.