Trade
Cancel Order
IMPORTANT
- You must specify id to cancel the order.
HTTP Request
POST /v1/trade/cancel-order
NOTE
Don't include trailing slash
/
at the end of the endpoint. Doing so can result in a “not found” error.Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
id | true | number | id of the position |
INFO
The ack of cancel order request indicates that the request is successfully accepted. Please use websocket order stream to confirm the order status.
Response Parameters
Parameter | Type | Comments |
---|---|---|
statusCode | number | 200 |
result | string | Success |
message | string | Order canceled successfully |
Parameter | Type | Comments |
---|---|---|
statusCode | number | 400 |
result | string | Bad Request |
message | string | Invalid Input! |