Cancel order
POST/cancel-order
Cancels an existing order after 5 minutes by expiring it.
Authenticate by signing the request or with the legacy x-sideshift-secret header. Your Ed25519 secret key and your account secret each grant full access to your account. Never share them.
Request
Header Parameters
Your Ed25519 public key, hex encoded. Required when signing the request. See Authentication.
Current Unix time in milliseconds, the same value used in the signed message. Must be within 60 seconds of server time. Required when signing the request.
Ed25519 signature of timestamp + METHOD + path + body, hex encoded. Required when signing the request. See Authentication.
Legacy account secret. Not needed when the request is signed with the x-sideshift-key, x-sideshift-timestamp and x-sideshift-signature headers. See Authentication.
- application/json
Body
required
The unique identifier of the order to cancel
Responses
- 204
- 400
- 404
- 500
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Order already expired",
"code": "BAD_USER_INPUT"
}
}
{
"error": {
"message": "Orders can only be cancelled after 5 minutes.",
"code": "BAD_USER_INPUT"
}
}
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Authentication required: sign the request or send the x-sideshift-secret header",
"code": "FORBIDDEN"
}
}
- application/json
- Schema
- Example
Schema
error object
{
"error": {
"message": "Internal Server Error",
"code": "UNKNOWN"
}
}