Stop all trading now
stop_all_tradingEmergency 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 the person can resume, with an authenticator code on the Web or in Telegram; agents keep their status but cannot open until then. Third-party apps never get this permission. Not for closing one position (use close_position). Input: reason. Next: get_my_positions to confirm nothing is left.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "stop_all_trading"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Why, for the user and the audit log | kill switch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when nothing is left open | |
| halted | Yes | Always true: new positions are blocked until the person resumes (authenticator code, on the Web or in Telegram); agents keep their status | |
| reason | Yes | The reason given | |
| status | Yes | Outcome of the stop | |
| receipt | No | Signed receipt (compact JWS, EdDSA); verify with /.well-known/tradehub-receipts.jwks | |
| sequence | Yes | The steps taken, in order | |
| remaining | Yes | Anything that could not be closed; retry or close it by hand | |
| deprecation | No | Present only while this tool is deprecated: replacement, removal_date, changelog | |
| orders_cancelled | Yes | Number of orders cancelled | |
| positions_closed | Yes | Number of positions closed (reduce-only) |