Trading Costs logo

Trading Costs

Community
Shubhamkumartrichy
trading-costs

Exact trading charges for Indian equity and F&O trades on NSE/BSE: brokerage (Zerodha, Groww, Angel One, Upstox, Dhan or custom), STT, exchange transaction charges, SEBI fee, stamp duty, GST, DP charges and MTF interest, plus breakeven price and cost-as-%-of-profit. Includes a calculator script with current (Oct 2026) rates, including the 1 Apr 2026 F&O STT hike. Use when the user asks "what are my charges", "brokerage for this trade", "breakeven price", "which broker is cheapest", "how much does STT cost", "is scalping worth it after charges", "MTF interest", or when another skill needs cost-adjusted R:R or P&L.

Overview

PublisherShubhamkumartrichy
Repositoryclaude-trading-skills-india
Skill nametrading-costs
Stars
57
Forks
11
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by Shubhamkumartrichy on GitHub. Read the source before you install it.

Installation

Install the Trading Costs AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/trading-costs
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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/trading-costs .claude/skills/trading-costs
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Trading Costs in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Trading Costs on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Trading Costs is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Trading Costs (India)

Costs are the one part of a trade you know in advance. Compute them exactly, because they decide whether small-edge strategies (scalping, frequent option trades) are viable at all.

Calculator

bash
python3 scripts/charges.py --segment delivery --buy 1800 --sell 1900 --qty 100 --broker zerodha
python3 scripts/charges.py --segment intraday --buy 2450 --sell 2465 --qty 200 --broker all     # compare brokers
python3 scripts/charges.py --segment options  --buy 120 --sell 150 --qty 130 --broker groww     # 2 NIFTY lots
python3 scripts/charges.py --segment futures  --buy 25000 --sell 25100 --qty 65 --exchange NSE
python3 scripts/charges.py --segment mtf --buy 500 --sell 540 --qty 400 --broker zerodha --mtf-days 20 --mtf-funded 100000
python3 scripts/charges.py ... --brokerage-pct 0.05 --brokerage-cap 20      # any other broker
python3 scripts/charges.py ... --json                                       # machine-readable

Options prices are premiums per unit, and --qty is in units (lots × lot size). Pass only --buy or only --sell to price one leg. The report shows the breakeven sell price (long) and buy-back price (short).

Statutory charges (identical at every broker; verified 31 Oct 2026)

ChargeDeliveryIntradayFuturesOptions
STT0.1% buy and sell0.025% sell0.05% sell (was 0.02% before 1 Apr 2026)0.15% of premium, sell (was 0.1%). Exercised ITM: 0.15% of intrinsic value
NSE transaction0.00307%0.00307%0.00183%0.03553% of premium
BSE transaction0.00375% (A/B group)0.00375%00.0325% of premium
SEBI fee₹10 / crore₹10 / crore₹10 / crore₹10 / crore
Stamp duty (buy side)0.015%0.003%0.002%0.003%
GST18% on brokerage + transaction + SEBI fee (+ DP charge)←←←
DP chargeper scrip per sell day (broker-specific, ~₹13–20 + GST)———

NSE also levies an IPFT (investor protection fund) charge of ₹0.01 per crore, which is negligible. Contract notes round STT and stamp duty to the nearest rupee.

Brokerage (per executed order, verified from official pricing pages, Oct 2026)

BrokerDeliveryIntradayFuturesOptionsDP (pre-GST)MTF interest
Zerodha₹00.03% or ₹20 (lower)0.03% or ₹20₹20 flat₹130.04%/day
Groww0.1% or ₹20 (lower), min ₹5same₹20 flat₹20 flat₹2014.95% p.a.
Angel One0.1% or ₹20, min ₹5same₹20 flat₹20 flat₹200.041%/day
Upstox₹20 flat0.1% or ₹200.05% or ₹20₹20 flat₹20₹20/day per ₹40k
Dhan₹00.03% or ₹20₹20 flat₹20 flat₹12.512.49–15.49% p.a. (tiered)

Brokerage in the cash segment can never exceed 2.5% of trade value (exchange cap). Introductory offers, plans such as Upstox Plus, and NRI pricing differ. Verify on the broker's page and pass overrides when needed.

What the numbers mean (rules of thumb)

  • Delivery round trip ≈ 0.22–0.25% of value before slippage, mostly STT on both sides. A swing trade aiming for 1% gives up about a quarter of it to costs.
  • Intraday equity ≈ 0.03% in statutory charges plus brokerage. Percentage-capped brokerage (0.03% at Zerodha/Dhan, 0.1% at Groww/Angel One) scales down for small orders. Flat ₹20 brokerage does not: ₹40 round trip on a ₹10,000 trade is 0.4%.
  • Options: the sell-side STT (0.15% of premium) and exchange charges (0.0355% of premium) are small per trade, but ₹40 brokerage per round trip on a ₹2,000 premium position is 2%. Frequent small option trades bleed.
  • Futures: after the 2026 STT hike, sell-side STT alone is about ₹750 per NIFTY lot (0.05% of ~₹15 lakh notional at NIFTY ≈ 23,000). A long round trip breaks even only after about 14 index points, so scalping for 5–10 points loses money.
  • DP charge is per scrip per day of selling, regardless of quantity. Selling 1 share costs the same DP fee as selling 1,000, so avoid tiny partial exits from delivery holdings.
  • MTF interest of 0.04%/day is about 15% a year. A 30-day MTF hold must beat ~1.2% in interest alone.
  • Hidden costs: bid-ask spread and impact cost (large in small caps and far OTM options), auto square-off fees (often ₹50 + GST), call-and-trade fees, pledge/unpledge fees, demat AMC, and payment gateway charges.

Tax interaction

  • STT is not deductible from capital gains (listed equity). Brokerage, exchange fees, stamp duty and GST are deductible as transfer costs.
  • For F&O and intraday (business income), all charges including STT are deductible expenses. See indian-tax-for-traders.

Output

Charges for [trade]: ₹X total (Y% of turnover, Z% of gross P&L)
  Brokerage ₹.. | STT ₹.. | Exchange ₹.. | Stamp ₹.. | GST ₹.. | DP ₹..
Net P&L: ₹N | Breakeven: ₹B (+P pts)
Cheapest broker for this trade: … (statutory charges are the same everywhere)

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Trading Costs AI skill do?

Exact trading charges for Indian equity and F&O trades on NSE/BSE: brokerage (Zerodha, Groww, Angel One, Upstox, Dhan or custom), STT, exchange transaction charges, SEBI fee, stamp duty, GST, DP charges and MTF interest, plus breakeven price and cost-as-%-of-profit. Includes a calculator script with current (Oct 2026) rates, including the 1 Apr 2026 F&O STT hike. Use when the user asks "what are my charges", "brokerage for this trade", "breakeven price", "which broker is cheapest", "how much does STT cost", "is scalping worth it after charges", "MTF interest", or when another skill needs co...

Why use Trading Costs on TypingMind?

Because you install it once and use it with any model. Trading Costs is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Trading Costs in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Shubhamkumartrichy/claude-trading-skills-india/tree/main/skills/trading-costs. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Trading Costs?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Trading Costs?

As many as you like. As long as a model supports skills, you can use Trading Costs with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Trading Costs AI skill free?

Yes. It is published on GitHub by Shubhamkumartrichy under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇