Skip to content

Cancel All Orders

Removes every open order belonging to the authenticated user, across all markets.

DELETE /cancel-all

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

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

None.

None required.

{
"canceled": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"b2c3d4e5-f6a7-8901-bcde-f12345678901"
],
"notCanceled": {}
}
FieldTypeDescription
canceledarray of stringsIDs of all orders that were removed
notCanceledobjectMapping from order ID to error string for any that could not be removed (normally empty)
Terminal window
curl -X DELETE https://api.openfish.fun/cancel-all \
-H "OPENFISH_ADDRESS: 0x..." \
-H "OPENFISH_SIGNATURE: ..." \
-H "OPENFISH_TIMESTAMP: 1700000000" \
-H "OPENFISH_API_KEY: ..." \
-H "OPENFISH_PASSPHRASE: ..."