Unable to place order,please check params
-
Hi @admin ,
Please check the stoploss order params ive prepared and tell me why its getting rejected.{
"variety":"STOPLOSS",
"tradingsymbol":str(self.selected_recommendation_stock[0]),
"symboltoken":str(self.token),
"transactiontype":"BUY",
"exchange":"NSE",
"ordertype":"STOPLOSS_MARKET",
"producttype":"INTRADAY",
"duration":"DAY",
"price":"0",
"squareoff":"0",
"triggerprice": str(round(0.98*float(self.market_data['data']['fetched'][0]['ltp']),2)),
"quantity":self.tradeQty
}Thanks,
Aakash -
@aakashsri013 Could you please post the final resulting JSON that is being sent to post the order?
-
@godboleamit I have posted the same above.
Any urgent help would be appreciated.
Thanks,
Aakash -
@aakashsri013 Also the same was working before when it was converted to stoploss order,earlier it was just a normal order.Nothing else has changed except the parameters for stoploss-market.
-
Hello @aakashsri013
could you please share the error received
Regards,
SmartAPI team -
@Moderator_3 No error just rejected order, try-except block not printing any error ,its not reaching the except-else portion of try block, hence i asked to check the params
-
@Moderator_3 OK so now there is nothing wrong on my end, the try except else block is passing but the order shows rejected at your web portal.Dew rejected orderIDs are:
rejected order:
may6th:
240506000802724
240506000804868
may7th:
240507000067908