☰
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
11.9K
All Categories
85
Node JS client
30
Go client
685
.Net API client
330
Kite Publisher
523
.Net / VBA / Excel (3rd party)
393
Algorithms and Strategies
891
Java client
902
API clients
383
PHP client
3.3K
Python client
310
Mobile and Desktop apps
1.2K
Market data (WebSockets)
2.9K
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.