Skip to content

Cancel Single Order

Removes one order from the book by its ID. This endpoint remains operational even when the platform is in cancel-only mode.

DELETE /order

Base URL: https://api.openfish.fun

L2 authentication required. All five OPENFISH_* headers must be present.

FieldTypeRequiredDescription
orderIDstringYesUUID of the order to cancel (also accepts orderId)
{
"orderID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
{
"canceled": ["a1b2c3d4-e5f6-7890-abcd-ef1234567890"],
"notCanceled": {}
}
FieldTypeDescription
canceledarray of stringsIDs of orders that were successfully removed
notCanceledobjectMapping from order ID to an error string for any orders that could not be removed
{
"canceled": [],
"notCanceled": {
"a1b2c3d4-e5f6-7890-abcd-ef1234567890": "not found or already canceled"
}
}
Terminal window
curl -X DELETE https://api.openfish.fun/order \
-H "Content-Type: application/json" \
-H "OPENFISH_ADDRESS: 0x..." \
-H "OPENFISH_SIGNATURE: ..." \
-H "OPENFISH_TIMESTAMP: 1700000000" \
-H "OPENFISH_API_KEY: ..." \
-H "OPENFISH_PASSPHRASE: ..." \
-d '{"orderID":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}'