code: public void placeBracketOrder(KiteConnect kiteConnect) throws KiteException, IOException {
          /** Bracket order:- following is example param for bracket order*
           * trailing_stoploss and stoploss_value are points and not tick or price
           */
          OrderParams orderParams = new OrderParams();
          orderParams.quantity = 1;
          orderParams.orderType = Constants.ORDER_TYPE_LIMIT;
          orderParams.price = 30.5;
          orderParams.transactionType = Constants.TRANSACTION_TYPE_BUY;
          orderParams.tradingsymbol = "SOUTHBANK";
          orderParams.trailingStoploss = 1.0;
          orderParams.stoploss = 2.0;
          orderParams.exchange = Constants.EXCHANGE_NSE;
          orderParams.validity = Constants.VALIDITY_DAY;
          orderParams.squareoff = 3.0;
          orderParams.product = Constants.PRODUCT_MIS;
           Order order10 = kiteConnect.placeOrder(orderParams, Constants.VARIETY_BO);
           System.out.println(order10.orderId);
      }
docs: Place bracket order.