For the complete documentation index, see llms.txt. This page is also available as Markdown.

PUT /api/v1/account/cancel-on-disconnect

Set cancel-on-disconnect

Set cancel-on-disconnect.

operationId: setCancelOnDisconnectV1

Declared server differs from the callable one. This path declares its own servers base of https://exchange.nexus.xyz, without the /api/exchange mount the document default carries. Measured 2026-09-02, the override is not routedhttps://exchange.nexus.xyz/api/v1/account/cancel-on-disconnect returns 404 while the gateway form in the sample below is routed. A client generated from this contract will aim at the override; pin the gateway base until the per-network hosts are live. See Networks.

Not reachable through CCXT. Cancel-on-disconnect is a Nexus session policy, not a CCXT method.

Authentication: hmacAuth.

Enables or disables cancel-on-disconnect for the authenticated account. Opt-in is per account and off by default: someone who deliberately leaves a passive resting order while offline should not have a brief blip cancel it. Enable it when you want the guarantee that a dead client cannot keep orders resting — typical for market makers and algorithmic traders. Returns the resulting COD status (same shape as the GET).

Request body

Required. SetCancelOnDisconnectRequestapplication/json.

{
  "enabled": true
}

Responses

Status
Body
Meaning

200

CancelOnDisconnectStatus

The resulting cancel-on-disconnect status for the account.

400

(no schema declared)

Malformed request body.

401

(no schema declared)

Example

X-Signature is a placeholder: it is derived from this specific request. See Authentication for the canonical string and the HMAC rule.


Generated from eng/apps/exchange/api/openapi.json (spec 0.9.36). Do not edit by hand — regenerate with python3 product/docs/tools/api-reference/generate.py. Hand-authored context lives in the Guides pages.

Last updated