Cancel order throws input exception always

vikasjaiswal7205
vikasjaiswal7205 edited April 2020 in Java client
Hi team,

I am using below code to cancel regular order , i can see order gets cancelled but it always throws inputException. Is it expected?

try {
k.cancelOrder(order.orderId, Constants.VARIETY_REGULAR);
}
catch (com.zerodhatech.kiteconnect.kitehttp.exceptions.InputException e)
{
}
catch (KiteException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
Tagged:
  • sujith
    It shouldn't throw an exception. Can you paste the exception message here?
Sign In or Register to comment.