Zerodha GTT

Kite Connect GTT API

From WebNotes, a public knowledge base. Last updated . Reading time ~3 min.

Kite Connect GTT (Good-Till-Triggered) API lets you create GTT orders programmatically:

EndpointMethod
Place GTTPOST /gtt/triggers
Modify GTTPUT /gtt/triggers/:id
Cancel GTTDELETE /gtt/triggers/:id
List GTTsGET /gtt/triggers
Single GTTGET /gtt/triggers/:id

GTT types

  • Single: One trigger price; one order placed when triggered.
  • OCO (One-Cancels-Other): Two trigger prices; whichever hits first cancels the other.

Python example

gtt_order = kite.place_gtt(
    trigger_type="single",
    tradingsymbol="RELIANCE",
    exchange="NSE",
    trigger_values=[2300],
    last_price=2400,
    orders=[{
        "transaction_type": "SELL",
        "quantity": 1,
        "product": "CNC",
        "order_type": "LIMIT",
        "price": 2300
    }]
)

Lifecycle

  • GTTs valid for ~1 year (or until executed).
  • On trigger, an order is placed into the regular order book.
  • Once triggered, GTT can’t be reversed.

Use cases

  • Stop-loss for delivery (CNC) holdings.
  • Long-term target sell.
  • Buy-on-dip orders.
  • Bracket-like behavior for delivery (OCO).

See also

External references

References

  1. Zerodha, Kite Connect GTT API, kite.trade.

Reviewed and published by

The WebNotes Editorial Team covers Indian capital markets, payments infrastructure and retail investor procedures. Every article is fact-checked against primary sources, principally SEBI circulars and master directions, NPCI specifications and the official support documentation published by the intermediary in question. Drafts go through a second-pair-of-eyes review and a separate compliance read before publication, and revisions are tracked against the SEBI and NPCI rule changes referenced in the methodology section.

Last reviewed
Conflicts of interest
WebNotes is independent. No relationship with any broker, registrar or bank named in this article.