Home › Broker Kill Switch › Dhan
DHAN · KILL SWITCH · F&O PROTECTION

DHAN
KILL SWITCH

TradeGuard integrates directly with your Dhan account via API. Set daily loss limits, profit targets, trade count limits, and time rules — automatic kill switch fires the moment any rule is breached.

Dhan is one of India's fastest-growing F&O brokers — clean UI, fast execution, good options chain. But like every broker app, Dhan has no built-in kill switch that stops you from overtrading or blowing past your daily loss limit. That's exactly what TradeGuard adds.

TradeGuard's Dhan integration uses the official Dhan API to monitor your account in real time. When a rule fires, TradeGuard sends the kill switch command to your Dhan account, squares off open positions, and locks you out for the rest of the day. You cannot override it from the Dhan app — if you try to re-enter from Dhan directly, TradeGuard's 30-second monitor job re-fires the kill switch.

HOW TO CONNECT
DHAN TO TRADEGUARD

1

Generate Dhan API credentials

Log in to Dhan app → Go to Profile → Developer API → Generate your Client ID and Access Token. Takes 2 minutes.

2

Enter credentials in TradeGuard

In your TradeGuard dashboard, go to Broker Connect → Dhan. Enter your Client ID and Access Token. TradeGuard verifies the connection instantly.

3

Set your trading rules

Configure your daily loss limit (e.g. ₹5,000), profit target (e.g. ₹8,000), max trades (e.g. 10), and any time or day rules you need.

4

Start monitoring before market open

Each morning, start your TradeGuard monitoring session. The dashboard shows your real-time P&L and rule status throughout the day.

WHAT TRADEGUARD
ADDS TO DHAN

Daily Loss Limit

Auto-stop when daily losses hit your limit — ₹2,000, ₹5,000, or any amount.

Profit Target Lock

Lock in gains when you hit your daily profit target — stop giving back wins.

Max Trades Per Day

Hard cap on daily trade count — the most direct fix for overtrading.

Time-Based Stop

Auto-stop trading at 1:30 PM, 2:00 PM or any time you set.

Day-Based Block

Block trading every Thursday (expiry day) or any weekly pattern.

Specific Date Lock

Lock RBI policy days, Budget, elections in advance — when thinking clearly.

REAL-TIME MONITORING
VIA DHAN WEBSOCKET

TradeGuard connects to Dhan's WebSocket order feed for sub-second monitoring of your account. Every new order, every fill, every P&L update is captured in real time. This is faster and more reliable than polling — your kill switch fires within seconds of a rule being breached, not minutes.

In addition to WebSocket, TradeGuard also polls your Dhan account every 5 seconds as a fallback. Both channels are active simultaneously to ensure no events are missed.

PROTECT YOUR
DHAN ACCOUNT.

4-day free trial. No credit card. Connect in under 5 minutes.

FAQ

TradeGuard is an independent tool that integrates with Dhan via the official Dhan API (the same API any developer can use). TradeGuard is not affiliated with, endorsed by, or a product of Dhan/Mirae Asset Capital Markets.
No. TradeGuard only needs your Dhan Client ID and API Access Token — not your password. The Access Token allows monitoring and order execution but does not expose your password. You can revoke the token from Dhan at any time.
TradeGuard sends squareoff orders for all open F&O positions via the Dhan API. The squareoff executes at market price. After squareoff, no new orders can be placed through Dhan for the rest of the day.
TradeGuard runs a monitor job every 30 seconds. If new positions appear in your Dhan account after the kill switch fires, TradeGuard detects it and re-fires the kill switch. This prevents bypass attempts from the broker app.