During options expiry , the margin requirement is more than the LTP* lotsize. Can you please provide the calculation for margin requirements during expiry week ? Is there any API for that , as we can see the maegin requirement displayed in app and web ?
You can read up on that here: https://support.zerodha.com/category/trading-and-markets/margin-leverage-and-product-and-order-types/articles/policy-on-physical-settlement
The margins API is available to Kite Connect users and you check this announcement for more information: https://kite.trade/forum/discussion/8400/kite-connect-api-update#latest