Skip to Content

Activate Kill Switch

This API pauses trading across all segments on your account.

USE CASE

Use this API when you want to stop the trading for the day.

Details

  • Before activating Kill Switch, you need to close all open positions and cancel pending orders. You can keep your pending GTT orders.
  • Once Kill Switch is active, you cannot take any new positions across all trading segments.
  • When you activate Kill Switch through the API, Web or App, it applies across all platforms. You can check its status using the Kill Switch Status API.
  • Trading resumes automatically on the next trading day.
  • If your account is blocked, debarred or has a pending closure request, Kill Switch cannot be activated.
  • If the request fails due to a network issue or timeout, the API returns HTTP 502 or 504 with code -99 and the message "Something went wrong. Please contact support". You can try again after some time.
  • Rate limits differ between the Standard and Prime plans. See Plans & rate limits.

Response Attributes

AttributeData TypeDescription
sstringRequest status - "ok" on success, "error" on failure.
codeintResponse status code. 200 on success. On a failure it is the error code, for example 1500.
messagestringHuman-readable message about the result.
Last updated on