Hi, I am using the getMarginCalculation() as shown in the snippet below. This is taken from your own example. It is for calculating the margin required for Nifty Futures. For "regular" variety, the result is given as 52,052.77, which is correct. However if the variety is changed to "co" to find out the margin required for cover order, the result given by the APi is 9,03,345.00 which is obviously not correct. Could you please tell me what is going wrong?
MarginCalculationParams param = new MarginCalculationParams(); param.exchange = "NFE"; param.tradingSymbol = "NIFTY21FEBFUT"; param.orderType = "MARKET"; param.quantity = 75; param.product = "MIS"; param.variety = "regular"; // param.variety = "co"; List params = new ArrayList<>(); params.add(param); List data = kiteConnect.getMarginCalculation(params); System.out.println(data.get(0).total);