Please see the attached screenshots. My program is trying to place SL orders. Few orders placed successfully today but few got rejected with error message - "Insufficient funds. Required margin is 52178.87 but available margin is 50599.80. Check the orderbook for open orders."
Required margin is showing incorrect for these rejected orders. Please look into it. Thanks so much.
It looks like there are open orders in the orderbook during that time and the required margin exceeds the available funds by 1579.07. You may refer to the relevant support article here.
Please see the qty and the price of these orders. Multiply them. The margin required is wrong! For COCHINSHIP its 14*1884 = ~ 26,400 but the screenshot you can see its over ~50,000 in all the screenshots, which is wrong! This I have calculated without 5x leverage consideration. If I consider 5x leverage the margin required will be around 5000 INR for all the orders in the screenshot, but the error message says ~50,000 I had enough margin i my funds that time.
The margin required is wrong!
For COCHINSHIP its 14*1884 = ~ 26,400 but the screenshot you can see its over ~50,000 in all the screenshots, which is wrong!
This I have calculated without 5x leverage consideration. If I consider 5x leverage the margin required will be around 5000 INR for all the orders in the screenshot, but the error message says ~50,000
I had enough margin i my funds that time.