Trading
Cancel orders
Cancel one or more orders by order ID. Requires EIP-712 signature authentication. In dev mode, the `X-Account-Address` header can be used as a shortcut.
Cancel one or more orders by order ID. Requires EIP-712 signature authentication.
In dev mode, the X-Account-Address header can be used as a shortcut.
Header Parameters
X-Account-Address?string
Account address (dev mode only, bypasses signature verification)
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X DELETE "http://localhost:3000/api/v1/order" \ -H "Content-Type: application/json" \ -d '{ "cancels": [ { "oid": "550e8400-e29b-41d4-a716-446655440000" } ], "nonce": 1 }'{
"status": "ok",
"response": {
"type": "cancel",
"data": {
"statuses": [
"success"
]
}
}
}{
"error": "Invalid request: missing required field"
}{
"error": "Invalid request: missing required field"
}