getMargin function is not considering active positions for margin calculations
-
Hi @admin ,
smartApi.getMarginApi(position_params) - This API is supposed to calculate the margin requirement for the basket of orders included in the 'position_params'.
However, this is not considering the already open positions for margin calculations. So, it becomes very difficult to calculate the exact cash requirement for us traders in real time, for legged option positions.
Is this expected? Or how do I force the API to consider active positions?
Please help!
Thanks!
-Sid