private/advanced/cancel-oto
REQUESTCancel a SPOT_ATTACH or DERIV_ATTACH order on the Exchange. This call is asynchronous, so the response is simply a confirmation of the request. Thewss://stream.crypto.com/exchange/v1/user
private/advanced/cancel-otoPrivate
user.advanced.order subscription can be used to check when each of the orders is successfully cancelled.
Note: This API can also be used to cancel SpotAttach / DerivAttach orders regardless of the number of legs (2 or 3). Both cancel-oto and cancel-otoco can be used interchangeably to cancel SpotAttach / DerivAttach orders by list_id.
Request
Body
required
id int64required
Request id (echoed in response)
method stringrequired
Must be "private/advanced/cancel-oto"
nonce int64required
Current timestamp in milliseconds, e.g. "1771761038000".
params objectrequired
list_id int64required
WebSocket response
Schema
id int64
Echoed request id
method string
Method invoked
code int32
0 = success; non-zero indicates error (reason code).
result object
Present when code === 0. No result block is returned per docs; code 0 indicates request queued.
object
message string
Present when code !== 0.
original string
Present when code !== 0.