TRADEHUBTESTNET

All tools

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

NameMeaning (* required)
reasonWhy, for the user and the audit log

Returns

FieldMeaning and unit
okTrue when nothing is left open
statusOutcome of the stop
orders_cancelledNumber of orders cancelled
positions_closedNumber of positions closed (reduce-only)
remainingAnything that could not be closed; retry or close it by hand
haltedAlways true: new positions are blocked until a person resumes on the Web
sequenceThe steps taken, in order
reasonThe reason given
receiptSigned receipt (compact JWS, EdDSA); verify with /.well-known/tradehub-receipts.jwks

Rejections: error codes, each with what to do.

TradeHub never asks for withdrawal permissions.