API for calculating margin

ferdinand.sousa
Is there an API we can use to get the same functionality as the margin calculators below:

https://zerodha.com/margin-calculator/Equity/
https://zerodha.com/margin-calculator/BracketCover/
This discussion has been closed.