Logo: Broker Integration

Broker Integration

Communautéit
Shubhamkumartrichy
broker-integration

Connect Claude to Indian brokers and use them safely: official MCP servers for Groww, Zerodha Kite, Dhan, Upstox, Fyers and Kotak Neo (endpoints, auth, read vs order capabilities as of Oct 2026), tool discovery and capability mapping, saving candles for the analysis scripts, a mandatory order-confirmation protocol, SEBI retail-algo/static-IP rules, and data fallbacks (yfinance, CSV). Use when the user asks to connect or set up Groww/Zerodha/Kite/Dhan/Upstox/Fyers/Angel One, "fetch my holdings/positions", "get live price", "place/modify/cancel an order", "set a GTT", "why was my order rejected", or when another skill needs live data.

Iwwersiicht

EditeurShubhamkumartrichy
Repositoryclaude-trading-skills-india
Skill-Nummbroker-integration
Stären
57
Forks
11
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Shubhamkumartrichy huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Broker Integration an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/broker-integration
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Shubhamkumartrichy/claude-trading-skills-india.git /tmp/claude-trading-skills-india
mkdir -p .claude/skills
cp -r /tmp/claude-trading-skills-india/skills/broker-integration .claude/skills/broker-integration
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Broker Integration an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Broker Integration automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Broker Integration net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Broker Integration (India)

Which broker does what (official MCP servers, checked Oct 2026)

BrokerEndpointAuthCan place orders?Read access
Groww (largest by active clients, ~29% share)https://mcp.groww.in/mcpOAuth; token lasts a dayYes: buy, limit and stop-loss. Sells need DDPIHoldings, positions, P&L, candles (stocks and F&O)
Zerodha Kitehttps://mcp.kite.trade/mcpKite login with 2FAHosted: GTT only. The open-source server (github.com/zerodha/kite-mcp-server) has order tools when self-hosted with your API keysQuotes, LTP, OHLC, historical, instruments, holdings, positions, margins, MF holdings, orders and trades
Dhanhttps://mcp.dhan.co/mcpOAuthYes, including Super OrdersFunds, holdings, positions, order and trade book, candles. Live quotes and option chain need the Data API (₹499 + tax a month)
Upstoxhttps://mcp.upstox.com/mcpOAuth, renewed dailyNo (read-only). Upstox's separate Agent Skill (Python SDK) can tradeHoldings, orders, positions, MFs, funds
Fyershttps://mcp.fyers.in/mcpFyers loginNo (watchlists and alerts only)Funds, holdings, positions, orders, GTTs, option chain, history
Kotak Neohttps://neo.kotaksecurities.com/mcp-server/mcpClient code + QR in appNoHoldings, orders, positions, live prices
Angel OneNo official server—Community servers onlyUse SmartAPI directly

Capabilities change often. After connecting, list the actual tools and trust that list over this table.

Connect (Claude Code)

bash
claude mcp add --transport http groww https://mcp.groww.in/mcp
claude mcp add --transport http kite  https://mcp.kite.trade/mcp
claude mcp add --transport http dhan  https://mcp.dhan.co/mcp
claude mcp add --transport http upstox https://mcp.upstox.com/mcp
# then run /mcp inside Claude Code to complete the browser login (OAuth)

Or commit a project .mcp.json (see references/brokers.md for more variants):

json
{
  "mcpServers": {
    "groww": { "type": "http", "url": "https://mcp.groww.in/mcp" },
    "kite":  { "type": "http", "url": "https://mcp.kite.trade/mcp" }
  }
}

In Claude Desktop or claude.ai, add the URL under Settings → Connectors → Add custom connector. Older clients can bridge with npx mcp-remote <url>.

Capability map (use whatever the connected server exposes)

NeedKite toolGroww tool (names as published by the community; confirm in the tool list)
Resolve symbol / instrumentsearch_instrumentssearch_stock_and_others_symbol
Live quote / depthget_quotes, get_ltp, get_ohlcget_quotes_and_depth, get_ltp
Candlesget_historical_datafetch_historical_candle_data
Holdings / positionsget_holdings, get_positionsget_equity_portfolio_holdings, positions tool
Margins / fundsget_marginsmargin or funds tool
Orders / tradesget_orders, get_trades, get_order_historyorder book tools
GTTget_gtts, place_gtt_order, modify_gtt_order, delete_gtt_order—

Feeding the scripts: write the candle response to a JSON file (the list of [timestamp, open, high, low, close, volume] or a list of dicts), then run python3 ../technical-analysis/scripts/ta.py summary --candles candles.json --symbol X. Compute indicators with ta.py, not by eyeballing a tool's indicator output. That keeps every broker's data consistent.

Symbols: always resolve F&O contracts through the instrument search. Formats differ by broker and between weekly and monthly contracts. Kite, for example, uses NIFTY26NOV23000CE for monthlies and a month-code plus day format for weeklies.

Order protocol (mandatory)

  1. Only on an explicit request in this conversation. Never place, modify or cancel orders from a loop, schedule, tip, or your own initiative.
  2. Pre-trade checks: market open, not a holiday (indian-market-structure); correct exchange, symbol and series; quantity is a lot multiple and below the freeze limit; price inside the circuit band; funds and margin available; sizing within position-sizing limits; event risk noted.
  3. Show a ticket and wait for "yes":
    BUY 25 TCS (NSE, EQ) | CNC | LIMIT ₹3,412.50 | DAY
    Value ₹85,312 | Est. charges ₹.. | Funds available ₹..
    Stop plan: GTT SL trigger ₹3,320 / limit ₹3,300 (separate confirmation)
    Confirm? (yes / no)
  4. LIMIT by default. Avoid market orders in options and small caps. Use SL-limit with a buffer. Use GTT for stops on delivery holdings.
  5. After sending: fetch the order status, then report the order id, status, and fill price and quantity. On rejection, explain the reason: margin shortfall, circuit limit, DDPI/eDIS missing for a sell, freeze quantity, ban-period position, product not allowed, or an expired session token.
  6. Secrets: never ask the user to paste API secrets or TOTP seeds into chat. Self-hosted servers read them from environment variables. Prefer read-only connections for analysis. With Kite self-hosting, EXCLUDED_TOOLS can strip order tools.

SEBI retail algo framework (fully in force from 1 Apr 2026)

  • API orders must come from a broker-registered app with a whitelisted static IP tied to the client. Dynamic IPs are rejected.
  • Strategies beyond exchange order-rate thresholds must be registered algos with exchange-issued IDs.
  • How brokers apply this to hosted MCP order tools is broker-specific and not well documented. For self-hosted API setups (Kite Connect, Upstox API, SmartAPI, Dhan API), register the static IP first.
  • In practice, MCP order tools are for manual, confirmed, one-at-a-time orders, not automation.

Fallbacks when no broker is connected

  • ta.py --symbol X uses yfinance (pip install yfinance). It is fine for end-of-day analysis; intraday quotes may be delayed.
  • The user can export CSV from their charting tool or paste a screenshot of prices. Ask for the date and time of the data.
  • NSE website reports (bhavcopy, delivery data, option chain CSV) can be downloaded manually. nseindia.com blocks most scripted access.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Broker Integration?

Connect Claude to Indian brokers and use them safely: official MCP servers for Groww, Zerodha Kite, Dhan, Upstox, Fyers and Kotak Neo (endpoints, auth, read vs order capabilities as of Oct 2026), tool discovery and capability mapping, saving candles for the analysis scripts, a mandatory order-confirmation protocol, SEBI retail-algo/static-IP rules, and data fallbacks (yfinance, CSV). Use when the user asks to connect or set up Groww/Zerodha/Kite/Dhan/Upstox/Fyers/Angel One, "fetch my holdings/positions", "get live price", "place/modify/cancel an order", "set a GTT", "why was my order reject...

Firwat Broker Integration op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Broker Integration besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Broker Integration an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/broker-integration an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Broker Integration benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Broker Integration benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Broker Integration domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Broker Integration gratis?

Jo. Shubhamkumartrichy huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇