Success/failure indication (status string on success).
al_id
The cancelled Alert ID, echoed back on success.
emsg
Present only on failure.
Best Practices
Fetch al_id from Get Pending GTT Order right before cancelling if you didn't keep the ID from placement — it's the only key this endpoint accepts.
A cancel call on an al_id that has already triggered (and become a live order) will fail — check Get Pending GTT Order first if there's any chance the trigger condition was recently met.
Treat stat as a free-form string ("Oi delete success") rather than pattern-matching on an exact value — check for the absence of emsg, or that the returned al_id matches what you sent.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/CancelGTTOrderapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>Parameters
Request Examples
Response
Best Practices
al_idfrom Get Pending GTT Order right before cancelling if you didn't keep the ID from placement — it's the only key this endpoint accepts.al_idthat has already triggered (and become a live order) will fail — check Get Pending GTT Order first if there's any chance the trigger condition was recently met.statas a free-form string ("Oi delete success") rather than pattern-matching on an exact value — check for the absence ofemsg, or that the returnedal_idmatches what you sent.