Skip to main content

PUT Kill Switch

Turn the master kill switch on or off.

Elite

The Management API requires an Elite subscription. See Authentication.

What the kill switch does and does not do

When it is on, every incoming webhook signal for your account is rejected, closing signals included. It does not flatten positions, cancel working orders, stop copiers or monitors, or block orders placed through the trading API, the MCP tools or by hand in your platform. To block signals to a single account, set blockSignals on that account's monitor.

Endpoint​

PUT https://app.crosstrade.io/v1/api/manage/controls/kill-switch

Headers​

NameRequiredValue
AuthorizationYesBearer <your API token>
Content-TypeYesapplication/json
If-MatchNoETag from a previous read of the controls

Body parameters​

NameTypeRequiredDescription
enabledbooleanYestrue turns the kill switch on, false turns it off. No other key is accepted

Code examples​

import requests

resp = requests.put(
"https://app.crosstrade.io/v1/api/manage/controls/kill-switch",
headers={"Authorization": "Bearer YOUR_TOKEN"},
json={"enabled": True},
)
print(resp.status_code, resp.json())

Responses​

The response carries the full controls after the change.

{
"success": true,
"changed": true,
"data": {
"killSwitch": true,
"closingOnly": false,
"tradingWindow": { "days": [], "start": "09:30", "end": "16:00", "closingOnlyAfter": null },
"monitorLock": false,
"enhancedClosingOnly": false
},
"changedFields": ["killSwitch"],
"delivery": { "status": "immediate", "target": "signal_gate" },
"warnings": [],
"meta": { "requestId": "req_9f2c1a0b7d3e4f51", "etag": "\"c2:Tm90UmVhbEV0YWcwMg\"" }
}

If the kill switch was already in the state you asked for, the response has "changed": false.

When it takes effect​

The next incoming webhook signal. A webhook that carries KILL_SWITCH=on or KILL_SWITCH=off changes the same setting. Your NinjaTrader add-on shows a message when the kill switch changes.

Notes​

  • This endpoint has its own budget (10 a minute, 5 at once), so other changes can never use it up. Your Token budget and the in-flight limit still apply. See Rate limits.
  • Every change is recorded in your change history.