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

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

Get cancel-on-disconnect status

Get cancel-on-disconnect status.

operationId: fetchCancelOnDisconnectV1

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.

Returns the authenticated account's cancel-on-disconnect (COD) status. COD is an opt-in, per-account dead man's switch: when the account's last authenticated /ws connection drops and does not reconnect within the grace window, the exchange automatically cancels all of the account's resting orders, so a crashed client cannot leave orders exposed. enabled is the account's own opt-in; active additionally requires the exchange-side feature switch, so it reflects whether COD will actually fire; grace_secs is the exchange-configured reconnect window in seconds (null when the feature is unavailable). Clients that trade purely over REST and never open a /ws connection are not covered.

Responses

Status
Body
Meaning

200

CancelOnDisconnectStatus

Current cancel-on-disconnect status for the account.

401

(no schema declared)

Example

curl -X GET 'https://exchange.nexus.xyz/api/exchange/api/v1/account/cancel-on-disconnect' \
  -H 'X-API-Key: nx_7f3a1b...' \
  -H 'X-Timestamp: 1776033911836' \
  -H 'X-Signature: <hmac-sha256>'
import requests

headers = {
    "X-API-Key": "nx_7f3a1b...",
    "X-Timestamp": "1776033911836",
    "X-Signature": "<hmac-sha256>"
}

response = requests.get("https://exchange.nexus.xyz/api/exchange/api/v1/account/cancel-on-disconnect", headers=headers)
response.raise_for_status()
print(response.json())
const response = await fetch("https://exchange.nexus.xyz/api/exchange/api/v1/account/cancel-on-disconnect", {
  method: "GET",
  headers: {
    "X-API-Key": "nx_7f3a1b...",
    "X-Timestamp": "1776033911836",
    "X-Signature": "<hmac-sha256>"
  },
});
if (!response.ok) throw new Error(`${response.status} ${await response.text()}`);
console.log(await response.json());

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