Robo order: Auto square off executed
-
I am trying to place Robo order for Banknifty options , but the order is rejected as i can see in my angel one app and the reason for order rejection is BO: Auto square off executed, can anyone help me with this,
Thanks in advance !!this is my placing order code
orderparams = {
"variety": "ROBO",
"tradingsymbol": option,
"symboltoken": token,
"transactiontype": "BUY",
"exchange": "NFO",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price" : price,
"squareoff": 30,
"stoploss": 10,
"quantity": 15,
"duration": "DAY"
}
orderId=smartApi.placeOrder(orderparams)
print("Buy", orderId) -
ROBO orders are intraday orders, you would not be able to place an intraday order at the end of the trading day, after auto square off is executed.