☰
Login
Signup
Home
›
API clients
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14K
All Categories
0
Incidents
156
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
460
Algorithms and Strategies
1K
Java client
1.1K
API clients
404
PHP client
4K
Python client
348
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
April 2022
SRIJAN
500 error when placing off market test order for ICICIBANK,NSE
tusharsingh
April 2022
in
API clients
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"}
Tagged:
error_type: 'GeneralException'
SRIJAN
April 2022
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.
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.