POST/NorenWClientAPI/PlaceGTTOrder
Place GTT Order
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.
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.
API Endpoint
POSThttps://api.shoonya.com/NorenWClientAPI/PlaceGTTOrderapplication/x-www-form-urlencodedjData=<JSON payload>&jKey=<AccessToken>— requires a validAccessTokenfrom Authentication.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.