dhan control
Manage the kill switch and P&L-based exit. Live action on
every mutating subcommand — all require --yes (and configure-pnl-exit supports
--dry-run).
Commands
Section titled “Commands”| Subcommand | Dhan endpoint | Purpose | Flags |
|---|---|---|---|
dhan control killswitch-status |
GET killswitch |
Show kill switch status. | — |
dhan control killswitch --status <ACTIVATE|DEACTIVATE> --yes Live action |
POST killswitch?killSwitchStatus=... |
Manage kill switch for current day. | --status (req), --yes (req) |
dhan control pnl-exit |
GET pnlExit |
Show current P&L-based exit configuration. | — |
dhan control configure-pnl-exit --file <json> --yes Live action |
POST pnlExit |
Configure P&L-based exit. | --file (req), --yes (req), --dry-run |
dhan control stop-pnl-exit --yes Live action |
DELETE pnlExit |
Stop P&L-based exit. | --yes (req) |
Examples
Section titled “Examples”dhan control killswitch-status --json --no-colordhan control killswitch --status ACTIVATE --yes --json --no-colordhan control killswitch --status DEACTIVATE --yes --json --no-color
dhan control pnl-exit --json --no-colordhan control configure-pnl-exit --file pnl.json --dry-run --json --no-colordhan control configure-pnl-exit --file pnl.json --yes --json --no-colordhan control stop-pnl-exit --yes --json --no-colorSee also
Section titled “See also”- Concepts › Live-trading guardrails
dhan ip— killswitch / pnl-exit management may require static-IP whitelisting; check the Dhan docs for the current rule.