Priceline is getting hidden when order is rejected

Response for the error.

{
“exchange”: “NFO”,
“instrument”: “NSE_FO|44688”,
“product”: “D”,
“price”: 113.05,
“quantity”: 75,
“status”: “not modified”,
“trading_symbol”: “NIFTY2591625050CE”,
“order_type”: “SL”,
“validity”: “DAY”,
“trigger_price”: 91.4,
“status_message”: “16448 : Difference between limit price and trigger price is beyond permissible range”,
“transaction_type”: “BUY”,
“average_price”: 0.0,
“filled_quantity”: 0,
“pending_quantity”: 75,
“order_id”: “250915000080241”,
“order_timestamp”: “2025-09-15 11:09:41”,
“tag”: null,
“unique_order_id”: “5091500401028350001”
}

My user id is: 24CR8K

I’ve raised this issue on August, 2024. But still it is not fixed. Upxtox team is working on it.

But As you have shared response of the API, I guess you are developer. I have fixed this issue from my end through Order update websocket.

Let me explain my way of fixing this issue.

when you get order status as not modified You check gap between trigger_price and price. If it is more than 10% or whatever you would like to set as maximum gap. then trail other leg.

if status == 'not modified':  
    if transaction_type == 'SELL':      
         if trigger_price - price > 2
            if trigger_price_is_modified:
                  price= trigger_price - 2
            else
                  trigger_price= price + 2
    elif transaction_type == 'BUY':      
         if price - trigger_price > 2
            if trigger_price_is_modified:
                  price= trigger_price + 2
            else
                  trigger_price= price - 2

after this call modify order API and price line will show again.

1 Like

Thanks @Jagdish_j_ptl for sharing your solution. Will try to implement this, until got fixed by Upstox team.

Upstox team are you there?

Hi @patel_43917209 This is a long pending issue from our end.

Rather than just throwing an error that the target/SL/Limit Order is out of the UC/LC limit, TV natively just removes/cancels the order from the charts view. This is changeable though.

We have an orders related update coming in soon to the TV platform, and this will be taken care of there!

Thanks for the update. But try to fix it ASAP.