Register a Good-Till-Triggered order: an order that stays dormant until the specified LTP condition is met, at which point it's submitted to the exchange with the given order parameters.
jData=<JSON payload>&jKey=<AccessToken> — requires a valid AccessToken from Login.
Overview
Place GTT Order is a superset of Set Alert: it carries the same trigger-condition fields (ai_t, d, validity) plus the full order payload (trantype, prctyp, prd, qty, prc, etc.) that gets submitted once the condition fires. Unlike Place Order, prctyp here also allows MKT, DS, 2L, and 3L.
Present only on failure — e.g. Invalid Input, Session Expired.
Best Practices
Check for al_id in the response before trusting the order is registered — stat is a free-form status string here, not a plain Ok/Not_Ok flag.
Confirm the ai_t value against Get Enabled GTT Orders before every placement — an unsupported alert type fails at request time, not silently.
Reconcile with Get Pending GTT Order after placing, the same way you'd reconcile a regular order against Order Book — a GTT order sits dormant for potentially a long time, so don't assume it's still there without checking.
Because the resulting order fires whenever the market later crosses your trigger, re-validate prc against the live circuit band and lot size at trigger time in your own monitoring — a GTT order placed weeks earlier can go stale relative to corporate actions, splits, or circuit changes.
MKT is allowed here even though it's rejected on Place Order — decide deliberately whether you want price protection (LMT) or fill certainty (MKT) once triggered.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/PlaceGTTOrderapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>— requires a validAccessTokenfrom Login.Overview
Place GTT Order is a superset of Set Alert: it carries the same trigger-condition fields (
ai_t,d,validity) plus the full order payload (trantype,prctyp,prd,qty,prc, etc.) that gets submitted once the condition fires. Unlike Place Order,prctyphere also allowsMKT,DS,2L, and3L.Parameters
DAY,GTTB(Buy),S(Sell)LMT,MKT,SL-LMT,SL-MKT,DS,2L,3LC,M,HDAY,EOS,IOCRequest Examples
Response
Okflag).Best Practices
al_idin the response before trusting the order is registered —statis a free-form status string here, not a plainOk/Not_Okflag.ai_tvalue against Get Enabled GTT Orders before every placement — an unsupported alert type fails at request time, not silently.prcagainst the live circuit band and lot size at trigger time in your own monitoring — a GTT order placed weeks earlier can go stale relative to corporate actions, splits, or circuit changes.MKTis allowed here even though it's rejected on Place Order — decide deliberately whether you want price protection (LMT) or fill certainty (MKT) once triggered.