stop_all_trading_now
Stop all trading now · changes money or positions: confirm first, idempotent ·
scopes: kill
Emergency stop for the whole account: cancel every resting order, close every position on every exchange with reduce-only orders, and block new positions. Use only when the person asks to stop everything or something is clearly wrong. Only a person can resume, on the Web with a verification code; third-party apps never get this permission. Not for closing one position (use close_perp_position_reduce_only). Input: reason. Next: get_my_open_positions to confirm nothing is left.
Call it
MCP tools/call
{"name": "stop_all_trading_now", "arguments": {}}
REST
POST /v1/kill
Inputs
| Name | Meaning (* required) |
|---|---|
reason | Why, for the user and the audit log |
Returns
| Field | Meaning and unit |
|---|---|
ok | True when nothing is left open |
status | Outcome of the stop |
orders_cancelled | Number of orders cancelled |
positions_closed | Number of positions closed (reduce-only) |
remaining | Anything that could not be closed; retry or close it by hand |
halted | Always true: new positions are blocked until a person resumes on the Web |
sequence | The steps taken, in order |
reason | The reason given |
receipt | Signed receipt (compact JWS, EdDSA); verify with /.well-known/tradehub-receipts.jwks |
Rejections: error codes, each with what to do.