M
@N399438 said in Important Update: Individual Order Status API using Unique Order ID (10 Requests/Second):
placeOrderFullResponse
Hello @N399438,
try:
orderparams = {
"variety": "NORMAL",
"tradingsymbol": "SBIN-EQ",
"symboltoken": "3045",
"transactiontype": "BUY",
"exchange": "NSE",
"ordertype": "LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": "19500",
"squareoff": "0",
"stoploss": "0",
"quantity": "1"
}
# Method 1: Place an order and return the order ID
orderid = obj.placeOrder(orderparams)
logger.info(f"PlaceOrder : {orderid}")
# Method 2: Place an order and return the full response
response = obj.placeOrderFullResponse(orderparams)
logger.info(f"PlaceOrder : {response}")
except Exception as e:
logger.exception(f"Order placement failed: {e}")
Thank you.
Regards
SmartAPI Team