i want to update stop loss to the existing position and i am getting this error when i click through python code please help me

Nifty50: Updating SL for NSE:NIFTY2651924200CE

Order ID: 26051800258189

LTP: 3.75

New SL Trigger: 3.0

New SL Limit : 2.0

Nifty50: Basket Modify Response → {‘code’: 200, ‘message’: ‘’, ‘data’: [{‘statusCode’: 400, ‘body’: {‘code’: -52, ‘message’: ‘Not a pending order’, ‘s’: ‘error’}, ‘statusDescription’: ‘Bad Request’}, {‘statusCode’: 400, ‘body’: {‘code’: -52, ‘message’: ‘Not a pending order’, ‘s’: ‘error’}, ‘statusDescription’: ‘Bad Request’}, {‘statusCode’: 400, ‘body’: {‘code’: -52, ‘message’: ‘Not a pending order’, ‘s’: ‘error’}, ‘statusDescription’: ‘Bad Request’}], ‘s’: ‘ok’}

Hi @111383297389530658596, could you please DM me your client ID to get this checked?

i have shared

HI @111383297389530658596,

As per the error message, “Not a pending order”, the provided order ID does not correspond to an open/pending order. The passed order ID appears to belong to an order that has already been executed or rejected.

Hi @111383297389530658596, as discussed over call, the issue has been resolved. Please let me know if you’re still facing anything on this.