placeOrder() is not working and returning nothing
-
Pasting the exact code I have used, placeOrder() is not working for any of the segments. Kindly check and let me know the issue.
I have checked it in the account and got to know that the orders are not being displayed on the website.
-
HI @kinshu94 Please go through the below doc
https://smartapi.angelbroking.com/docs/Orders -
Hi @admin,
I have checked it, I noticed one thing that the ROBO order is working for EQUITY but Options, also the NORMAL order is not working for the OPTIONS.User's activated segments are: [bse_cm, nse_cm , nse_fo]
Does Smart-API handle orders for the NFO segment?
-
Thank you for getting it checked.
@admin Okay then I must check my environment once again. I'll get back to you if I would be still faceing the same issue. -
hi @kinshu94 it is working fine from our end.
req:
{
"variety":"NORMAL",
"tradingsymbol":"SBIN-EQ",
"symboltoken":"3045",
"transactiontype":"BUY",
"exchange":"NSE",
"ordertype":"MARKET",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"421",
"squareoff":"0",
"stoploss":"0",
"quantity":"1"
}
response:
{
"status": true,
"message": "SUCCESS",
"errorcode": "",
"data": {
"script": "SBIN-EQ",
"orderid": "210622000000096"
}
} -
HI @kinshu94 We have noted this we will update you once it is fixed.
-
@admin I have also tried following code with NORMAL order it also didn't work, giving null type return.
orderparams = {
"variety": "NORMAL",
"tradingsymbol": "SBIN-EQ",
"symboltoken": "1375",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "415",
"squareoff": "0",
"stoploss": "0",
"quantity": "1"
}
orderId=obj.placeOrder(orderparams)Could you let me know if Smart-API is even reliable, I have been facing this issue since yesterday and got no proper reply/responce on the matter from any of the developers of Smart-API.