Placing sl-m sell order through upstox api where the ltp is lower than the trigger price

Can i place sl-m sell order through upstox api where the ltp is lower than the trigger price??? Will this give me error or just execute the order and sell at market price???

Hi @AISHWARY_S_19442542
You can set the trigger price higher than the LTP when placing sell orders. The sell order will then be executed at the current market price.

This will not result in any error.

Here’s a sample payload for the IDEA stock with an LTP of around 9.5:


{
  "product": "D",
  "validity": "DAY",
  "price": 0,
  "tag": "1",
  "instrument_token": "NSE_EQ|INE669E01016",
  "order_type": "SL-M",
  "transaction_type": "SELL",
  "disclosed_quantity": 0,
  "trigger_price": 10,
  "is_amo": false,
  "quantity": 1
}

Thanks!