POST/NorenWClientAPI/ModifyOrder
Modify Order
Modify the price, quantity, order type, or trigger price of an existing open or trigger-pending order. The exchange, trading symbol, and transaction type of the original order cannot be changed.
Modify the price, quantity, order type, or trigger price of an existing open or trigger-pending order. The exchange, trading symbol, and transaction type of the original order cannot be changed.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/ModifyOrderapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>— requires a validAccessTokenfrom Authentication.Overview
Modify Order changes an order that is still resting on the exchange —
OpenorTrigger Pendingstate — without cancelling and re-placing it. Use it to reprice a stale limit order, resize a partially-adjusted position, or move a stop-loss trigger as the market moves. Always confirm current order state via Order Book before modifying — an order that has already completed, been cancelled, or been rejected cannot be modified.exchandtsymidentify the original order and cannot be changed by a modify request. To trade a different symbol or exchange, cancel the order and place a new one.LMTandSL-LMT, and that restriction carries through to Modify Order — you cannot convert an order toMKTvia modification, even though some generic Noren API references elsewhere show anewprice_type='MKT'example.Rate Limits
Shares the same 10 orders/second (OPS) per-client throttle as Place Order, enforced at the OMS layer per SEBI's algo-trading OPS threshold framework — modify and cancel calls count against the same bucket as new order placements.
Parameters
NSE,BSE,NFO,BFO,CDS,MCXM&M).MKTis not supported — see warning above.LMT,SL-LMTprctypisSL-LMT, or when converting an existing order to/fromSL-LMT.prctyp = LMTDAY,IOCqtyAPIRequest Examples
Response
result, notnorenordno— a common source of silent bugs when reusing Place Order's response-parsing code. As with Place Order,HTTP 200is returned for both success and failure; always checkstat.OkorNot_Ok.Common Error Responses
norenordnodoesn't exist, belongs to another user, or has already completed/been cancelled.qtyis zero, negative, or not a lot-size multiple.prcoutside the exchange circuit band.exchortsymdoesn't match the original order.jKey/AccessTokeninvalid or expired.emsg; reconcile actual state via Order Book rather than assuming the modify applied.Best Practices
qty,prc,prctyp,ret, etc.), not just the field you're changing — Modify Order replaces the order's terms rather than patching a single field.result, notnorenordno— reusing Place Order's response-parsing logic unmodified is a common bug.MKTisn't supported here either, repriceLMTmodifications with a small buffer beyond current LTP for reliable fills.stat: "Ok"response means the new terms are live at the exchange.