Any one have any idea why this error happen when modifying stop loss orders . modify_order request - > {'id': 'xxxxxxxxxx', 'type': 4, 'limitPrice': 2493.9, 'stopLoss': 2495.1, 'qty': 3} response ->{'s': 'error', 'code': -174, 'message': 'The limit priceI

Any one have any idea why this error happen when modifying stop loss orders . modify_order request - > {‘id’: ‘xxxxxxxxxx’, ‘type’: 4, ‘limitPrice’: 2493.9, ‘stopLoss’: 2495.1, ‘qty’: 3} response ->{‘s’: ‘error’, ‘code’: -174, ‘message’: ‘The limit priceIs worser than the trigger price’, ‘id’: ‘xxxxxxxxxx’}. The same order gets success after sometime . But doesn’t have any idea about the error code -174 .

Hey Vaisakh,
-174 error code occurs when placing orders after market hours, i.e., when market is offline.

Hi Vikram thanks for the reply . But I was executing this in live market and also after 5 min or so this modify order was successfully executed . While in offline market the error code is same but response message is different , see this →

{‘s’: ‘error’, ‘code’: -174, ‘message’: ‘System is not connected to NSE Equity market’, ‘id’: ‘’} .

In my case the error code is same but response is different →

{‘s’: ‘error’, ‘code’: -174, ‘message’: ‘The limit priceIs worser than the trigger price’, ‘id’: ‘xxxxxxxxxx’}.