Zerodha Basket orders

Kite Connect basket orders API

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

Basket orders via Kite Connect let you place multiple orders together, useful for multi-leg options strategies, pair trades, and portfolio rebalancing:

Approach

Kite Connect doesn’t have a dedicated “basket” endpoint; instead, place multiple orders in quick succession:

basket = [
  {"tradingsymbol": "NIFTY24MAYFUT", "transaction_type": "BUY", "quantity": 50, ...},
  {"tradingsymbol": "NIFTY24MAY22000CE", "transaction_type": "SELL", "quantity": 50, ...},
  ...
]

for leg in basket:
    kite.place_order(variety="regular", **leg)

Considerations

  • Rate limit: Place legs spaced 200-500ms apart to avoid hitting per-second limit.
  • Partial execution: Some legs may fill, others may fail; design exit logic accordingly.
  • Margin: Total margin must be available; legs may individually pass margin check but combined fail.
  • Sequence: Place buy-side legs first for short legs that require margin from buys.

Use cases

  • Options strategies: Iron condor, butterfly, vertical spread placement.
  • Pair trades: Buy + Sell simultaneously.
  • Sector basket: Buy top-5 IT stocks in proportions.
  • Index replication: Multiple instruments mimicking an index.

Alternative: GTT-based basket

For longer-term: use GTT API for each leg with a single trigger condition.

See also

External references

References

  1. Zerodha, Kite Connect orders 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.