--:--:--

Zerodha Kite Connect 3 — Live Orders & API Hub

v3 REST & Interactive ConsoleLive Gateway Ready

Send orders, modify, cancel, track daily orderbook, live margins, and full API documentation

Kite Connect Interactive Orders Controller

Execute, Modify & Track Orders Directly from Here

Connected as: Sandbox Trader (RQ1166) • Net Trading Margin: ₹5,00,000

Order Execution Mode:
Auto SL/TP:Armed (GTT OCO)
Automatic Stoploss & Target ProtectionSingle & Bulk Compatible

Calculate precise exit levels and attach an automated Zerodha GTT Two-Leg (OCO) trigger upon fill

Execution Mechanism:
Stop-Loss Protection (SL)
₹803.27
Max Loss Risk:-₹122.30(-₹12.23/sh)
Target Profit Take (TP)
₹839.97
Potential Profit:+₹244.70(+₹24.47/sh)
Risk-to-Reward:1 : 2.0 R:RCapital Outlay: ₹8,155
✓ Automatic Kite GTT OCO trigger registered on entry fill

Kite Connect 3 Orders & User Endpoints

Complete list of HTTP endpoints for orders, margins, profile & auth

12 of 12 Endpoints
POST/session/token

Exchange request_token & checksum (SHA-256) to retrieve permanent access_token.

cURL Execution Request
cURL Request
curl -X POST "https://api.kite.trade/session/token" \
  -H "X-Kite-Version: 3" \
  -d "api_key=xxx" \
  -d "request_token=yyy" \
  -d "checksum=zzz"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "user_id": "RQ1166",
    "user_name": "Manishkumar Vadnathani",
    "email": "[email protected]",
    "broker": "ZERODHA",
    "access_token": "zwG0td5vOR06GzgFECT2tXXqMTW6f6LI",
    "public_token": "XXXXXX",
    "login_time": "2026-09-09 09:15:00"
  }
}
GET/user/margins

Retrieve real-time funds, cash, and blocked margin breakdown across equity & commodity.

cURL Execution Request
cURL Request
curl "https://api.kite.trade/user/margins" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "equity": {
      "enabled": true,
      "net": 500000.0,
      "available": { "cash": 450000.0, "live_balance": 450000.0, "collateral": 0 },
      "utilised": { "debits": 50000.0, "span": 0, "exposure": 20000.0, "m2m_realised": 1500.0 }
    }
  }
}
GET/user/profile

Retrieve authenticated account's permissions, enabled products and exchanges.

cURL Execution Request
cURL Request
curl "https://api.kite.trade/user/profile" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "user_id": "RQ1166",
    "user_name": "Manishkumar Vadnathani",
    "broker": "ZERODHA",
    "exchanges": ["NSE", "NFO", "BFO", "CDS", "BSE", "MCX"],
    "products": ["CNC", "NRML", "MIS", "MTF"]
  }
}
POST/orders/:variety

Place an order of a particular variety (regular, amo, co, iceberg, auction).

cURL Execution Request
cURL Request
curl -X POST "https://api.kite.trade/orders/regular" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token" \
  -d "tradingsymbol=SBIN" \
  -d "exchange=NSE" \
  -d "transaction_type=BUY" \
  -d "order_type=LIMIT" \
  -d "quantity=10" \
  -d "price=815.50" \
  -d "product=MIS" \
  -d "validity=DAY" \
  -d "market_protection=-1"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "order_id": "260909000123456"
  }
}
PUT/orders/:variety/:order_id

Modify an open or pending order (order_type, quantity, price, trigger_price, etc.).

cURL Execution Request
cURL Request
curl -X PUT "https://api.kite.trade/orders/regular/260909000123456" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token" \
  -d "order_type=LIMIT" \
  -d "price=817.00" \
  -d "quantity=15"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "order_id": "260909000123456"
  }
}
DELETE/orders/:variety/:order_id

Cancel an open or pending order registered with the OMS.

cURL Execution Request
cURL Request
curl -X DELETE "https://api.kite.trade/orders/regular/260909000123456" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "order_id": "260909000123456"
  }
}
GET/orders

Retrieve the list of all orders (open, pending, and executed) for the current day.

cURL Execution Request
cURL Request
curl "https://api.kite.trade/orders" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": [
    {
      "placed_by": "RQ1166",
      "order_id": "260909000123456",
      "status": "COMPLETE",
      "exchange": "NSE",
      "tradingsymbol": "SBIN",
      "order_type": "LIMIT",
      "transaction_type": "BUY",
      "quantity": 10,
      "price": 815.50,
      "average_price": 815.50
    }
  ]
}
GET/trades

Retrieve the list of all executed trade fills generated across all orders for the day.

cURL Execution Request
cURL Request
curl "https://api.kite.trade/trades" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": [
    {
      "trade_id": "10000000",
      "order_id": "260909000123456",
      "exchange": "NSE",
      "tradingsymbol": "SBIN",
      "product": "MIS",
      "average_price": 815.50,
      "quantity": 10,
      "fill_timestamp": "2026-09-09 09:16:39"
    }
  ]
}
DELETE/session/token

Invalidate and destroy the API session and access_token.

cURL Execution Request
cURL Request
curl -X DELETE "https://api.kite.trade/session/token?api_key=xxx&access_token=yyy" \
  -H "X-Kite-Version: 3"
Response Payload
JSON Response
{
  "status": "success",
  "data": true
}
POST/gtt/triggers

Place a new GTT trigger (single leg or two-leg OCO order valid up to 1 year).

cURL Execution Request
cURL Request
curl -X POST "https://api.kite.trade/gtt/triggers" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token" \
  -d "type=two-leg" \
  -d 'condition={"exchange":"NSE", "tradingsymbol":"RELIANCE", "trigger_values":[2900.0, 3100.0], "last_price": 2985.0}' \
  -d 'orders=[
    {"exchange":"NSE", "tradingsymbol": "RELIANCE", "transaction_type": "SELL", "quantity": 25, "order_type": "LIMIT", "product": "CNC", "price": 2899.0},
    {"exchange":"NSE", "tradingsymbol": "RELIANCE", "transaction_type": "SELL", "quantity": 25, "order_type": "LIMIT", "product": "CNC", "price": 3101.0}
  ]'
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "trigger_id": 105099
  }
}
GET/gtt/triggers

Retrieve all active and recently triggered GTTs (past 7 days).

cURL Execution Request
cURL Request
curl "https://api.kite.trade/gtt/triggers" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": [
    {
      "id": 105099,
      "type": "two-leg",
      "status": "active",
      "condition": { "exchange": "NSE", "tradingsymbol": "RELIANCE", "trigger_values": [2900, 3100], "last_price": 2985 },
      "orders": [
        { "tradingsymbol": "RELIANCE", "price": 2899, "quantity": 25, "transaction_type": "SELL" },
        { "tradingsymbol": "RELIANCE", "price": 3101, "quantity": 25, "transaction_type": "SELL" }
      ]
    }
  ]
}
DELETE/gtt/triggers/:id

Delete/cancel an active GTT trigger before core execution.

cURL Execution Request
cURL Request
curl -X DELETE "https://api.kite.trade/gtt/triggers/105099" \
  -H "X-Kite-Version: 3" \
  -H "Authorization: token api_key:access_token"
Response Payload
JSON Response
{
  "status": "success",
  "data": {
    "trigger_id": 105099
  }
}

Glossary of Constants & Enums

Fixed values and parameters required for order placement, variety selection, and risk management

variety5 options
regular
Regular order during normal market hours (09:15–15:30 IST)
amo
After Market Order placed outside normal hours for next day
co
Cover Order (Intraday order with mandatory Stop-Loss leg)
iceberg
Iceberg Order (Split large quantities into 2 to 50 smaller legs)
auction
Auction Order for participation in settlement auction sessions
order_type4 options
MARKET
Market order executed immediately at prevailing best price
LIMIT
Limit order executed only at specified price or better
SL
Stoploss limit order triggered at trigger_price, placed at limit price
SL-M
Stoploss market order triggered at trigger_price, executed at market
product4 options
CNC
Cash & Carry for equity delivery (100% upfront capital blocked)
NRML
Normal product for overnight F&O, Currency, and Commodity contracts
MIS
Margin Intraday Squareoff (Intraday leveraged, squared off at 15:20)
MTF
Margin Trading Facility (Broker funded equity with margin interest)
validity3 options
DAY
Order remains valid until the trading session closes
IOC
Immediate or Cancel (Unfilled quantity is cancelled instantly)
TTL
Time-To-Live in minutes (specified via validity_ttl parameter)
market_protection2 options
-1
Automatic market protection percentage applied dynamically by RMS
>0 to 100
Custom percentage protection (e.g., 2 = 2% band, 5 = 5% band)
autoslice2 options
false
Disable automatic order slicing (default behavior)
true
Enable automatic splitting into up to 10 slices for freeze limit quantities

TypeScript SDK Integration Types

Strongly-typed interfaces ready to drop into institutional trading services

Kite Connect 3 TypeScript Client Integration
export type KiteOrderVariety = 'regular' | 'amo' | 'co' | 'iceberg' | 'auction';
export type KiteOrderType = 'MARKET' | 'LIMIT' | 'SL' | 'SL-M';
export type KiteProduct = 'CNC' | 'NRML' | 'MIS' | 'MTF';
export type KiteValidity = 'DAY' | 'IOC' | 'TTL';

export interface KiteOrderParams {
  tradingsymbol: string;
  exchange: 'NSE' | 'BSE' | 'NFO' | 'CDS' | 'BCD' | 'MCX';
  transaction_type: 'BUY' | 'SELL';
  order_type: KiteOrderType;
  quantity: number;
  product: KiteProduct;
  price?: number;
  trigger_price?: number;
  disclosed_quantity?: number;
  validity: KiteValidity;
  validity_ttl?: number;
  iceberg_legs?: number;
  iceberg_quantity?: number;
  auction_number?: string;
  market_protection?: number; // -1 or 1 to 100
  autoslice?: boolean;
  tag?: string;
}

export async function placeKiteOrder(params: KiteOrderParams, apiKey: string, accessToken: string) {
  const form = new URLSearchParams();
  for (const [k, v] of Object.entries(params)) {
    if (v !== undefined && v !== null) form.append(k, String(v));
  }

  const res = await fetch(`https://api.kite.trade/orders/${params.variety || 'regular'}`, {
    method: 'POST',
    headers: {
      'X-Kite-Version': '3',
      'Authorization': `token ${apiKey}:${accessToken}`,
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    body: form.toString()
  });

  return await res.json();
}
Kite Connect 3 Orders & User API Reference • Wise Traide Quantitative Trading Platform