zerodha-kite-helper

zerodha-kite-helper is a skill for Claude Code, Codex from rahulcommercial/claude-code-for-indian-traders. It costs 65 tokens per session (546 once invoked), scanned A, original, MIT.

A helper for Zerodha Kite Connect, an API for accessing Indian stock-market account and market data. It covers authentication, positions, holdings, orders, margins, quotes, and historical price candles, with read-only use by default.

In plain words
What is it for?
Use it to fetch Indian equity or futures-and-options positions, holdings, orders, margins, live quotes, and historical data for analysis or backtesting.
Why use it?
It avoids repeatedly working out the login-token process and the common API calls needed to inspect an account or retrieve market data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to fetch Indian equity or futures-and-options positions, holdings, orders, margins, live quotes, and historical data for analysis or backtesting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rahulcommercial/claude-code-for-indian-traders --skill zerodha-kite-helper
Clone the repo
git clone --depth 1 https://github.com/rahulcommercial/claude-code-for-indian-traders

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zerodha-kite-helper

README.md
[![agentmods](https://agentmods.dev/badge/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper/github.svg)](https://agentmods.dev/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper)
Your own site
<a href="https://agentmods.dev/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper"><img src="https://agentmods.dev/badge/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zerodha-kite-helper

Your own site · 80×15
<a href="https://agentmods.dev/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper"><img src="https://agentmods.dev/badge/skills/rahulcommercial/claude-code-for-indian-traders/zerodha-kite-helper.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 546 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.00546
Opus 5 $0.00032 $0.00273
Sonnet 5 $0.00013 $0.00109
Haiku 4.5 $0.00006 $0.00055

Measured 11d ago against content hash fad14f808e2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

zerodha-kite-helper scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/zerodha-kite-helper/SKILL.md · 62 lines

What it actually says

Zerodha Kite Helper

Wraps the common Kite Connect read paths so you don't keep re-explaining the auth dance.

When to use

  • User wants to fetch positions, holdings, orders, margins, or quotes from Kite.
  • User is debugging the request-token → access-token exchange.
  • User needs historical candles for backtesting.

Auth flow (one-shot)

  1. Login URL: https://kite.zerodha.com/connect/login?api_key=<API_KEY>&v=3
  2. After login, Kite redirects to your registered URL with ?request_token=xxx.
  3. Exchange for access_token (valid till 6 AM next day):
from kiteconnect import KiteConnect
kite = KiteConnect(api_key=API_KEY)
data = kite.generate_session(request_token, api_secret=API_SECRET)
access_token = data["access_token"]
kite.set_access_token(access_token)

Store access_token in a gitignored file. Never commit it.

Common read calls

kite.positions()         # net + day positions
kite.holdings()          # long-term holdings
kite.orders()            # today's orders
kite.margins()           # equity + commodity margins
kite.quote(["NSE:NIFTY 50", "NSE:RELIANCE"])
kite.historical_data(instrument_token, from_date, to_date, "5minute")

Rate limits to respect

  • 3 req/sec for quote, ohlc, ltp
  • 10 req/sec for order placement (we don't place orders here)
  • 1 req/sec for everything else

If you exceed, you get HTTP 429. Back off with exponential jitter.

What this skill will NOT do

  • No live orders. This skill never calls kite.place_order(). If user asks, redirect to paper-trade-runner.
  • No margin pledging or fund movement.
  • No leaking access_token in logs.

Edge cases

  • Access token expires daily at 6 AM IST — handle 403 by re-running auth flow.
  • Market closed → quotes return last close. Check last_trade_time before assuming live data.
  • F&O expiry day: instrument tokens for expired contracts get archived. Refresh the instrument dump weekly.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 62 lines · 65 tokens per session scan A fad14f808e2e

Subscribe to this mod's changes

zerodha-kite-helper is a skill published in the GitHub repository rahulcommercial/claude-code-for-indian-traders (2 stars, last pushed 3mo ago), licensed MIT. It adds 65 tokens to every session and 546 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

weekly-fno-trade-planner

Weekly F&O trade planning skill for Indian markets. Analyzes news/macro events, identifies trending sectors and instruments, determines probable direction, suggests option strategy with entry/exit levels, and manages stop-loss and profit booking after position entry. Use when user wants a weekly trade idea, F&O…

ajeeshworkspace/indian-trading-skills · 86 tokens

india-news-tracker

Track and analyze Indian stock market news, corporate announcements, SEBI circulars, bulk/block deals, and earnings calendars. Auto-fetches headlines from MoneyControl, Economic Times, LiveMint, BSE/NSE filings. Use when the user asks about recent news, corporate actions, upcoming events, or wants a daily market news…

ajeeshworkspace/indian-trading-skills · 76 tokens

options-strategy-advisor

Options strategy analysis for Indian F&O markets (NSE). Use when user requests options strategy recommendations, P/L analysis, Greeks calculation, risk management, or F&O strategy planning for Nifty, Bank Nifty, or stock options.

ajeeshworkspace/indian-trading-skills · 53 tokens

india-market-breadth

Analyze Indian market breadth health using advance/decline data, stocks above moving averages, new highs/lows, and sector participation. Use when assessing rally quality, market participation width, or equity exposure levels for NSE/BSE.

ajeeshworkspace/indian-trading-skills · 51 tokens

india-stock-analysis

Use when user requests analysis of Indian stocks, fundamental assessment, technical review, comparisons, or investment reports for NSE/BSE listed companies.

ajeeshworkspace/indian-trading-skills · 31 tokens

backtest-expert

Expert guidance for systematic backtesting of trading strategies on Indian markets (NSE/BSE). Use when developing strategies, testing robustness, avoiding overfitting, or validating trading ideas.

ajeeshworkspace/indian-trading-skills · 41 tokens