Issue with Tracking Triggered Stoploss Order Due to Missing Order Tag
-
I placed a BUY order with a STOPLOSS using the following payload
{
"variety": "STOPLOSS",
"ordertype": "STOPLOSS_LIMIT",
"producttype": "INTRADAY",
"duration": "DAY",
"price": 205.1,
"triggerprice": 205,
"quantity": "1",
"disclosedquantity": "0",
"squareoff": 0,
"stoploss": 0,
"trailingstoploss": 0,
"tradingsymbol": "FEDERALBNK-EQ",
"transactiontype": "BUY",
"exchange": "NSE",
"symboltoken": "1023",
"ordertag": "20",
"instrumenttype": "",
"strikeprice": -1,
"optiontype": "",
"lotsize": "1",
}When the order was triggered, it created a new order, but I am unable to track it. I used 20 in the ordertag field for tracking purposes, but the triggered order returned an empty ordertag. How can I establish the relation between the original stoploss order and the triggered order to ensure I am tracking the correct order?"
-
@Moderator_3
Can you please share a sample payload to place a target order? I used the following one, and it placed the order, but I didn't receive the parent order ID.
{
"exchange": "NSE",
"tradingsymbol": "FEDERALBNK-EQ",
"symboltoken": "1023",
"quantity": "1",
"disclosedquantity": "0",
"price": 203.50,
"lotsize": "1",
"triggerprice": 203.2,
"transactiontype": "SELL",
"ordertype": "LIMIT",
"variety": "NORMAL",
"producttype": "INTRADAY",
"duration": "DAY",
"squareoff": 0,
"stoploss": 0,
"trailingstoploss": 0,
"strikeprice": -1,
"cancelsize": "0",
"averageprice": 0,
"ordertag": "22"
}, -
@Shashi089 Use the order_id from your original stoploss order to track the triggered order. The triggered order should reference the original order_id as a parent_order_id. This will help you establish the relationship between them. If any concern kindly ping here.
Regards,
SmartAPI Team.