Cancel Order by ID
For the current WebSocket request, you can optionally include a unique client request ID in the request body. The same client request ID will be found in the response and is used to match the response to the request. The client request ID must be a UUID.
The quantity
in the response is the remaining quantity of the order at the time of cancellation. It’s NOT the initial quantity of the order.
However, if you want to get the 100% accurate remaining quantity of the order at the time of cancellation, we recommend relying on the completed orders information that you can get from one of three different APIs:
The orderStatus
in the response indicates the order’s status at the time it was cancelled. It could be active
, pending
and others depending on timing.
URL
This stream can be subscribed per market and you will need to pass in the market in the URL query. See below.
Query params
Example value: ETH-USD
. To get all supported markets, call /api/v1/markets endpoint.
Headers
See Authorization section on how to retrieve authorization token. Once token is received, set Sec-WebSocket-Protocol
headers in the WebSocket handshake request or on connect()
.
Example value (authorization token) :