☰
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
10.9K
All Categories
64
Node JS client
21
Go client
641
.Net API client
311
Kite Publisher
512
.Net / VBA / Excel (3rd party)
336
Algorithms and Strategies
828
Java client
831
API clients
367
PHP client
2.9K
Python client
296
Mobile and Desktop apps
1.1K
Market data (WebSockets)
2.7K
General
In this Discussion
April 29
SRIJAN
500 error when placing off market test order for ICICIBANK,NSE
tusharsingh
April 28
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 29
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.