Margin required for Intraday Stocks

Is there any way to calculate margin required for intraday stocks?
I have gone through below links but it seems there are no such api for stocks.
If not when can we see this feature or if there is an alternate way I can calculate from other other links?
Some workaround will also work.
https://fyers.in/community/t/any-api-call-in-python-to-find-margin-required/12950

Hi @114608618025914791635,

You can use the Margin Calculator available. Please refer docs:https://myapi.fyers.in/docsv3#tag/Margin-Calculator/paths/~1MarginCalculator/get