Skip to content

Trader's Control

Kill Switch

This API lets you activate the kill switch for your account, which will disable trading for current trading day. You can pass header parameter as ACTIVATE or DEACTIVATE to manage Kill Switch settings.

Note

You need to ensure that all your positions are closed and there are no pending orders in your account to be able to activate Kill Switch.

curl --request POST \
--url 'https://api.dhan.co/v2/killswitch?killSwitchStatus=ACTIVATE' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'access-token: JWT'


Request Structure

No Body


Response Structure

{
    "dhanClientId":"1000000009",
    "killSwitchStatus": "Kill Switch has been successfully activated"
}


Parameters

Field Type Description
dhanClientId string User specific identification generated by Dhan
killSwitchStatus string Status of Kill Switch - activated or not


Note: For description of enum values, refer Annexure