FnO Margin Calculator via Kite Connect

Hi, I have my own algo for Futures and Options, based on the underlying Kite Connect API.

A key part of of this is to know the Margin requirements for Selling Options, which is available via the Zerodha Margin Calculator, but I dont see this in the Kite Connect API.

Can anyone help with figuring out how to do this in an automated manner?