Skip to content

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).

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)
Terminal window
dhan control killswitch-status --json --no-color
dhan control killswitch --status ACTIVATE --yes --json --no-color
dhan control killswitch --status DEACTIVATE --yes --json --no-color
dhan control pnl-exit --json --no-color
dhan control configure-pnl-exit --file pnl.json --dry-run --json --no-color
dhan control configure-pnl-exit --file pnl.json --yes --json --no-color
dhan control stop-pnl-exit --yes --json --no-color