Zerodha Kite
The Zerodha Kite block connects your workflows to Zerodha's Kite Connect API — read holdings, positions, and margins, place, modify, and cancel orders, and fetch quotes and instrument lists for Indian markets (NSE, BSE, NFO).
Trading involves real money. Orders placed by this block go straight to your Zerodha account. Test with small quantities and strict conditions before automating anything.
Key Features
- Portfolio: Holdings, positions, and available margins at a glance
- Order Management: Place, modify, and cancel orders across order types (MARKET, LIMIT, SL, SL-M)
- Order Tracking: List today's orders and the full history of a single order
- Market Data: Live quotes and the tradable instruments list
- Product Types: CNC (delivery), MIS (intraday), and NRML supported
Operations
Portfolio & Account
| Operation | Description |
|---|---|
| Get Holdings | List your long-term holdings |
| Get Positions | List your open positions |
| Get Margins | Fetch available margin and cash balances |
Orders
| Operation | Description |
|---|---|
| Place Order | Place a BUY or SELL order for a trading symbol on NSE/BSE/NFO |
| Modify Order | Change an open order's price, quantity, or trigger price |
| Cancel Order | Cancel an open order by order ID |
| Get Orders | List all orders for the day |
| Get Order History | Fetch the state history of one order |
Market Data
| Operation | Description |
|---|---|
| Get Quote | Fetch a live quote for a symbol (e.g. NSE:INFY) |
| Get Instruments | Download the tradable instruments list (returned as CSV text) |
Configuration
| Parameter | Type | Required | Description |
|---|---|---|---|
| Credentials | Select | Yes | Your saved Zerodha Kite connection |
| Action | Select | Yes | One of the operations above |
| Trading Symbol | Text | For orders & quotes | e.g. INFY, RELIANCE |
| Exchange | Text | For orders & quotes | NSE, BSE, or NFO |
| Transaction Type | Text | For Place Order | BUY or SELL |
| Order Type | Text | For Place Order | MARKET, LIMIT, SL, or SL-M |
| Quantity | Text | For orders | Number of shares/contracts |
| Price / Trigger Price | Text | For LIMIT/SL orders | Order prices |
| Product | Text | For orders | CNC (delivery), MIS (intraday), or NRML |
| Variety | Text | No | regular, amo, co, or iceberg |
| Order ID | Text | For modify/cancel/history | The target order |
Connecting your Zerodha account
Kite Connect uses a daily login flow, so this connection needs three values:
- Create a Kite Connect app at developers.kite.trade (opens in a new tab) (a paid Zerodha product). Copy the API Key and API Secret.
- Generate an Access Token: open the Kite login URL for your app (
https://kite.zerodha.com/connect/login?v=3&api_key=<your_api_key>), log in, and exchange the returnedrequest_tokenplus your API secret for anaccess_token(Kite's docs show the exact call — the checksum isSHA-256(api_key + request_token + api_secret)). - In Indite, add the Zerodha Kite block, click Connect new, and enter the API Key, API Secret, and Access Token.
Kite access tokens expire every trading day (Zerodha invalidates them daily around 6 AM IST). When calls start failing with a token error, generate a fresh access token and update the credential.
Output
The block returns the raw Kite Connect API response — holdings, positions, order confirmations (order_id), quotes, and margins. Get Instruments returns { "instruments": "<csv text>" }. Reference fields in later blocks with {{<blockId>.<field>}}.
Example: margin-checked order alert
- Webhook Trigger — your signal source (e.g. a charting alert) calls the workflow with a symbol and side.
- Zerodha Kite → Get Margins — check available cash first.
- Condition — only continue if the available margin covers the trade.
- Zerodha Kite → Place Order —
BUY, order typeLIMIT, productMIS, quantity and price from the trigger payload. - Telegram — send yourself the returned
order_idas confirmation.