public void modifyFirstLegBo ( KiteConnect kiteConnect ) throws KiteException , IOException { OrderParams orderParams = new OrderParams ( ) ; orderParams . quantity = 1 ; orderParams . price = 31.0 ; orderParams . transactionType = Constants . TRANSACTION_TYPE_BUY ; orderParams . tradingsymbol = "SOUTHBANK" ; orderParams . exchange = Constants . EXCHANGE_NSE ; orderParams . validity = Constants . VALIDITY_DAY ; orderParams . product = Constants . PRODUCT_MIS ; orderParams . tag = "myTag" ; orderParams . triggerPrice = 0.0 ; Order order = kiteConnect . modifyOrder ( "180116000798058" , orderParams , Constants . VARIETY_BO ) ; System . out . println ( order . orderId ) ; }
Modify first leg bracket order .