Note
The kill switch lets a client block their own trading in chosen segments for a chosen period, using 3 APIs. While it is on, any new order, order modification, GTT or position conversion in that segment is rejected, whether it comes through the API, web or mobile. Cancelling existing orders is still allowed.
Kill Switch¶
| Type | APIs | Details |
|---|---|---|
| GET | {{BASE_URL}}api/od/v1/killswitch/status | Get kill switch status for every segment |
| POST | {{BASE_URL}}api/od/v1/killswitch/enableOrDisable | Request enable / extend / disable (sends OTP) |
| POST | {{BASE_URL}}api/od/v1/killswitch/otp/validate | Validate OTP and apply the change |
Get KillSwitch Status¶
This API returns ON or OFF for every segment, with the end time and whether it can be turned off yet.
Response Structure
{
"status": "Ok",
"message": "Success",
"result": [
{
"segment": "EQ",
"killSwitch": "OFF"
},
{
"segment": "FO",
"killSwitch": "ON",
"startTime": "2026-10-16 13:00:00",
"endTime": "2026-10-22 23:59:59",
"canTurnOff": false,
"info": "You can turn off the kill switch after 17 Oct 2026, 01:00 AM."
},
{
"segment": "CD",
"killSwitch": "OFF"
},
{
"segment": "COM",
"killSwitch": "ON",
"startTime": "2026-10-10 09:00:00",
"canTurnOff": true,
"info": "You can now turn off the kill switch for Commodity if you wish."
}
]
}
Response Parameters
| Field | Type | Description |
|---|---|---|
| segment | String | EQ, FO, CD or COM |
| killSwitch | String | ON or OFF |
| startTime | String | When it was turned on |
| endTime | String | When it ends automatically. Missing for UNTIL_OFF. |
| canTurnOff | Boolean | true once the 12-hour lock is over |
| info | String | A readable line about turning it off |
KillSwitch Enable or Disable¶
This API checks the request and sends the OTP. It returns a requestId to use in Validate OTP. The change takes effect only after the OTP is validated.
Request Structure
Enable – F&O for 7 days
{
"action": "ENABLE",
"segments": "FO",
"duration": "7D",
"reason": "TAKING_BREAK",
"acknowledge": true
}
Extend – F&O to a later date
{
"action": "EXTEND",
"segments": "FO",
"duration": "DATE",
"endDate": "2026-10-30"
}
Disable – F&O (after the 12 hours)
{
"action": "DISABLE",
"segments": "FO"
}
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| action | String | Yes | ENABLE, EXTEND, DISABLE |
| segments | List | Yes | One or more of EQ, FO, CD, COM, or ["ALL"] |
| duration | String | ENABLE, EXTEND | TODAY, 7D, 30D, DATE, UNTIL_OFF |
| endDate | String | Only when duration = DATE | yyyy-MM-dd, today to 90 days ahead |
| reason | String | No | TAKING_BREAK, TOO_MANY_LOSSES, OTHER |
| acknowledge | Boolean | ENABLE | Must be true (the client has read what will happen) |
Response Structure
{
"status": "Ok",
"message": "Success",
"result": {
"requestId": "KSR1760605200123",
"segments": "FO",
"otpValiditySeconds": 300,
"resendAfterSeconds": 30,
"message": "OTP sent to your registered mobile and email."
}
}
Response Parameters
| Field | Type | Description |
|---|---|---|
| requestId | String | Send this in Validate OTP with the OTP |
| segments | List | The segments this request will change. With ALL, segments already on are left out. |
| otpValiditySeconds | Integer | The OTP expires after this many seconds (300) |
| resendAfterSeconds | Integer | Wait this long before requesting a new OTP (30) |
| message | String | Where the OTP was sent |
Validate OTP¶
This API checks the OTP and applies the change requested in KillSwitch Enable or Disable. The action, segments and dates come from that request; only the requestId and otp are sent here.
Request Structure
Input Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| requestId | String | Yes | requestId from the Enable or Disable response |
| otp | String | Yes | The 6-digit OTP received by SMS or email |
Response Structure
Response – enable
{
"status": "Ok",
"message": "Success",
"result": {
"message": "Kill switch is on for F&O until 22 Oct 2026, 11:59 PM.",
"segments": [
{
"segment": "FO",
"endTime": "2026-10-22 23:59:59",
"canTurnOffAfter": "2026-10-17 01:00:00"
}
]
}
}
Response – enable with ALL (F&O was already on)
{
"status": "Ok",
"message": "Success",
"result": {
"message": "Kill switch is now on for all segments. Equity, Currency, Commodity: until you turn it off. F&O: already on until 22 Oct 2026, 11:59 PM.",
"segments": [
{ "segment": "EQ", "canTurnOffAfter": "2026-10-17 03:30:00" },
{ "segment": "CD", "canTurnOffAfter": "2026-10-17 03:30:00" },
{ "segment": "COM", "canTurnOffAfter": "2026-10-17 03:30:00" },
{ "segment": "FO", "endTime": "2026-10-22 23:59:59", "canTurnOffAfter": "2026-10-17 01:00:00" }
]
}
}
Response – extend
{
"status": "Ok",
"message": "Success",
"result": {
"message": "Kill switch updated: F&O until 30 Oct 2026, 11:59 PM.",
"segments": [
{
"segment": "FO",
"endTime": "2026-10-30 23:59:59",
"canTurnOffAfter": "2026-10-17 01:00:00"
}
]
}
}
Response – disable
{
"status": "Ok",
"message": "Success",
"result": {
"message": "Trading re-enabled for F&O",
"segments": [
{ "segment": "FO" }
]
}
}
Response Parameters
| Field | Type | Description |
|---|---|---|
| result.message | String | What happened, ready to show to the client |
| segments[].segment | String | Segment changed |
| segments[].endTime | String | New end time. Missing for UNTIL_OFF and for disable. |
| segments[].canTurnOffAfter | String | When the 12-hour lock ends. Extend does not change it. |