Hi all,

Apologies for delayed response.
Kindly refer to the below API documentation to get the required margin for respective segment.
https://smartapi.angelbroking.com/docs/MarginCalculator

Thanks & Regards,
SmartAPI team