Hello,
I could generate the access token but getting this response while placing orders: “An unexpected error occurred. Please contact support., Code: -96”.
Can someone please help me on this on priority? Thanks in advance.
Hello,
I could generate the access token but getting this response while placing orders: “An unexpected error occurred. Please contact support., Code: -96”.
Can someone please help me on this on priority? Thanks in advance.
Hey Sanjay, are you able to hit any other APIs after generating the access token?
Yes, the “positions” endpoint is still working with the same access token. Even socket connections are working fine. Received the error response only with the “orders” POST request.
And before you ask me to validate my code/POST request, I have been using it for quite a while now and there aren’t any recent changes to the underlying code/logic.
Any pointers will be greatly appreciated. Thank you in advance.
Okay, Can you send me the payload you are passing while placing the order. Also is this issue occurring recently? Were you able to place orders previously with the same payload?
Thanks for the reply, Vikram. The payload is usual “order” JSON that I pass in to the API, nothing new I did today. Will share it shortly or maybe tomorrow morning (I will have to dig into the logs) but as I said the code hasn’t been changed and I have been using the same JSON until now (except for the strike symbol, limit price, etc. obviously).
Continuing from my earlier comment, will it be possible to know what exactly is that “unexpected error” I got in the response? Also, what’s “code: -96”? Any documentation references if you have please?
Hey @vikram_sri
We’re also facing the same issue.. Can we have a quick solution for this
Hello,
Even I am having the same problems,
The close all positions also stopped working, however I was able to fix it by passing
{}
However when placing the order, the error persists.
Here is the payload
{ “symbol”:“NSE:NIFTY2310519000CE”,
“qty”:50,
“type”:2,
“side”:1,
“productType”:“MARGIN”,
“limitPrice”:0,
“stopPrice”:0,
“disclosedQty”:0,
“validity”:“DAY”,
“offlineOrder”:“FALSE”,
“stopLoss”:0,
“takeProfit”:0
}
I was able to place order with same payload as above earlier.
Here is the API response
(
[s] => error
[code] => -96
[message] => An unexpected error occurred. Please contact support.
[id] =>
)
Please help @vikram_sri