500 error when placing off market test order for ICICIBANK,NSE

tusharsingh
request -
URL - https://api.kite.trade/orders/regular
METHOD - POST
HEADERS -
Accept:application/json, text/plain, */*
Content-Type:application/x-www-form-urlencoded
X-Kite-Version:3
User-Agent:kiteconnectjs/4.0.0
Authorization:token vvh**********:*********

Body
exchange=NSE&tradingsymbol=ICICIBANK&transaction_type=BUY&quantity=1&product=CNC&price=750&order_type=LIMIT&variety=regular

Response 500
{"status":"error","message":"49040X33vKBgN1nHwj| Put Order Request : Error Code : 11 Reason : Message build error","data":null,"error_type":"GeneralException"}
  • SRIJAN
    You seem to be making requests during the BOD process time( from 12:30 AM to 7:30 AM). During the BOD process, the system is in maintenance. That's why the 500 error.

    You can read about exceptions/error codes here:
    https://kite.trade/docs/connect/v3/exceptions/

    Also,the order parameters have to send as body of the request as the method is POST,not as query params.
Sign In or Register to comment.