Skip to main content
POST
Cancel all orders after a timeout

Authorizations

X-Monaco-Signature
string
header
required

Ed25519 session-key request signing. Every authenticated request carries three headers: X-Monaco-PublicKey (64-char lowercase-hex session public key), X-Monaco-Timestamp (Unix milliseconds, within 30s of server time), and X-Monaco-Signature (hex ed25519 signature). The signature is over METHOD\npath?query\ntimestamp_ms\nSHA256_hex(body), where the body hash is the SHA-256 of the empty byte string when there is no body. Obtain the session keypair from POST /api/v1/auth/challenge followed by POST /api/v1/auth/verify.

Body

application/json
timeoutMs
integer<uint32>
required

Milliseconds from now until your resting orders are cancelled: 0 disarms, otherwise 5000 to 900000 (5 seconds to 15 minutes). Each call replaces the previous deadline.

Required range: x <= 900000
Example:

30000

tradingPairId
string<uuid> | null

Scope the timer to one trading pair. Omitted, the timer covers every market. Required for a delegated session.

Example:

"456e7890-e12b-12d3-a456-426614174000"

Response

OK

timeoutMs
integer<uint32>
required

The timeout that was set, echoed back; 0 when disarmed

Example:

30000

cancelAt
string | null

When the exchange cancels your resting orders unless you call again first (ISO 8601). Absent when the timer was disarmed.

Example:

"2026-06-01T00:00:30Z"

tradingPairId
string<uuid> | null

The trading pair the timer covers; absent for the account-wide timer

Example:

"456e7890-e12b-12d3-a456-426614174000"