What is the best automatic kill switch for F&O traders on India's top brokers? This guide covers how TradeGuard works with each broker and which is most reliable for Dhan, Zerodha, Upstox and Angel One accounts.
TradeGuard connects to Dhan using your Client ID + daily Access Token. Monitors P&L via WebSocket (real-time order updates) + polling every 5 seconds. When rules breach, fires the Dhan kill switch API endpoint twice for maximum reliability. Double-fire is specific to Dhan — Upstox/Zerodha/Angel One fire once to avoid creating reverse positions.
Connects via Kite Connect v3 OAuth — you log in through Kite's official login page. TradeGuard gets a daily access token (expires midnight IST). Kill switch fires once: cancels pending orders, squares off open positions with LIMIT orders at best bid/ask. Re-square loop runs every 5 seconds until 3:30 PM IST.
OAuth2 login flow through Upstox's official authorization page. Token expires at 3:30 AM IST. Kill switch fires once (cancel all + square off all positions). Re-square loop every 5 seconds after firing. Orders placed by TradeGuard are tagged tg_ks so the bypass monitor ignores them.
Connects via SmartAPI OAuth — you create a free developer app at smartapi.angelone.in, whitelist your dedicated TradeGuard proxy IP, and connect daily. Token expires at midnight IST. Kill switch fires once: cancels pending orders, exits all positions with MARKET orders. Re-square loop every 5 seconds until 3:30 PM IST.
| Feature | Dhan | Zerodha | Upstox | Angel One |
|---|---|---|---|---|
| Kill switch fires | Twice | Once + re-square | Once + re-square | Once + re-square |
| P&L update frequency | WebSocket + 5s poll | 5s polling | 5s polling | 5s polling |
| Connection method | Client ID + token | OAuth2 (Kite) | OAuth2 | OAuth2 (SmartAPI) |
| Token expiry | 12 hours | Midnight IST | 3:30 AM IST | Midnight IST |
| Bypass detection | 30s re-fire check | 5s re-square loop | 5s re-square loop | 5s re-square loop |
| All 6 rule types | ✓ | ✓ | ✓ | ✓ |
| Free trial | 4 days | No (₹999/mo) | No (₹999/mo) | No (₹999/mo) |