Exception while placing cover order

ruchanavjyot1907
Hello,

I am getting exception while placing CO order. Please advise us on the same.
Moreover, please suggest if - product, validity and order_type should be blank or needs to be specified while placing CO order (while placing CO manually these fields are grey out).

The logs for my unsuccessful order placement attempts are given below:

INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - Order URL : https://api.kite.trade/orders/CO
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - ************** Order Parameteres ****************
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - product : MIS
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - quantity : 1
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - trigger_price : 212.1
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - tradingsymbol : ZINCMINI18JANFUT
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - exchange : MCX
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - validity : DAY
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - transaction_type : SELL
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - order_type : MKT
INFO 2018-01-01 16:09:05,517 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kiteconnect.KiteConnect - ************** ************** ****************
INFO 2018-01-01 16:09:05,530 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kitehttp.KiteRequest - JSON Response: {"error_type":"GeneralException","message":"Route not found","status":"error"}
ERROR 2018-01-01 16:09:05,530 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kitehttp.KiteRequest - OrderResponse Error Type: GeneralException
ERROR 2018-01-01 16:09:05,530 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kitehttp.KiteRequest - OrderResponse Message: Route not found
ERROR 2018-01-01 16:09:05,530 [pool-1-thread-1] com.tradeRobotBatch.kiteAPI.api.kitehttp.KiteRequest - OrderResponse Error Code: 404
ERROR 2018-01-01 16:09:05,530 [pool-1-thread-1] com.tradeRobotBatch.business.processor.OrderProcessor - Order Exception:
com.tradeRobotBatch.kiteAPI.api.kitehttp.exceptions.KiteGeneralException
at com.tradeRobotBatch.kiteAPI.api.kitehttp.KiteRequest.dealWithKiteException(KiteRequest.java:253)

  • Vivek
    Variety should be lower case, available options are `regular`, `co`, `bo` and `amo`. So the order place url becomes - https://api.kite.trade/orders/co
  • ruchanavjyot1907
    @Vivek Thanks. Please let me know my second query as well. product, validity and order_type should be blank or to be specified? If they needs to be specified, then - are these below options correct for placing CO order?

    product : MIS
    validity : DAY
    order_type : MKT
  • Vivek
    Order type should be MARKET not MKT and other params seems fine.
  • ruchanavjyot1907
    @Vivek Thanks, will try tomorrow once market is opened.
Sign In or Register to comment.