☰
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
15K
All Categories
0
Incidents
178
Node JS client
52
Go client
848
.Net API client
397
Kite Publisher
554
.Net / VBA / Excel (3rd party)
491
Algorithms and Strategies
1.1K
Java client
1.2K
API clients
410
PHP client
4.3K
Python client
357
Mobile and Desktop apps
1.5K
Market data (WebSockets)
3.6K
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.