curl --request DELETE \
--url https://api.omnibook.xyz/v1/portfolio/orders \
--header 'DX-ACCESS-KEY: <api-key>' \
--header 'DX-ACCESS-SIGNATURE: <api-key>' \
--header 'DX-ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://api.omnibook.xyz/v1/portfolio/orders"
headers = {
"DX-ACCESS-KEY": "<api-key>",
"DX-ACCESS-TIMESTAMP": "<api-key>",
"DX-ACCESS-SIGNATURE": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'DX-ACCESS-KEY': '<api-key>',
'DX-ACCESS-TIMESTAMP': '<api-key>',
'DX-ACCESS-SIGNATURE': '<api-key>'
}
};
fetch('https://api.omnibook.xyz/v1/portfolio/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"seq": "182400"
}{
"error": {
"code": "unknown_field",
"num": null,
"origin": "gateway",
"message": "unknown_field",
"details": null
}
}{
"error": {
"code": "unauthorized",
"num": null,
"origin": "gateway",
"message": "unauthorized",
"details": null
}
}{
"error": {
"code": "missing_scope",
"num": null,
"origin": "gateway",
"message": "missing_scope",
"details": null
}
}{
"error": {
"code": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}{
"error": {
"code": "shed",
"num": null,
"origin": "gateway",
"message": "shed",
"details": null
}
}{
"error": {
"code": "sequencing_timeout",
"num": null,
"origin": "gateway",
"message": "sequencing_timeout",
"details": null
}
}Cancel all orders
Cancel all of the caller’s resting orders (optionally scoped by
market_id / group_id). Maps to MASS_CANCEL. The
sequenced command is the acknowledgment — there is no summary event
and no count. The resulting CANCELED events stream on the WS user
channel.
The request body MUST be empty: a non-empty body is rejected 400
unexpected_body before the query is decoded, so a client that
meant DELETE /v1/portfolio/orders/batch and dropped the last path
segment fails closed instead of retiring its whole book.
curl --request DELETE \
--url https://api.omnibook.xyz/v1/portfolio/orders \
--header 'DX-ACCESS-KEY: <api-key>' \
--header 'DX-ACCESS-SIGNATURE: <api-key>' \
--header 'DX-ACCESS-TIMESTAMP: <api-key>'import requests
url = "https://api.omnibook.xyz/v1/portfolio/orders"
headers = {
"DX-ACCESS-KEY": "<api-key>",
"DX-ACCESS-TIMESTAMP": "<api-key>",
"DX-ACCESS-SIGNATURE": "<api-key>"
}
response = requests.delete(url, headers=headers)
print(response.text)const options = {
method: 'DELETE',
headers: {
'DX-ACCESS-KEY': '<api-key>',
'DX-ACCESS-TIMESTAMP': '<api-key>',
'DX-ACCESS-SIGNATURE': '<api-key>'
}
};
fetch('https://api.omnibook.xyz/v1/portfolio/orders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"seq": "182400"
}{
"error": {
"code": "unknown_field",
"num": null,
"origin": "gateway",
"message": "unknown_field",
"details": null
}
}{
"error": {
"code": "unauthorized",
"num": null,
"origin": "gateway",
"message": "unauthorized",
"details": null
}
}{
"error": {
"code": "missing_scope",
"num": null,
"origin": "gateway",
"message": "missing_scope",
"details": null
}
}{
"error": {
"code": "rate_limited",
"num": null,
"origin": "gateway",
"message": "rate limited",
"details": {
"retry_after_ms": "10"
}
}
}{
"error": {
"code": "shed",
"num": null,
"origin": "gateway",
"message": "shed",
"details": null
}
}{
"error": {
"code": "sequencing_timeout",
"num": null,
"origin": "gateway",
"message": "sequencing_timeout",
"details": null
}
}Authorizations
The public API key (alphanumeric access_key string).
Request timestamp, Unix milliseconds (decimal). ±5000 ms replay window.
base64(HMAC-SHA256(secret, "timestamp\nMETHOD\npath?query\nbody")). For the WS handshake the body is empty and the path is /v1/ws.
Query Parameters
Restrict to one market; 0 or absent = all markets.
Restrict to one order group; 0 or absent = all groups.
Response
Cancel-all sequenced.
A bare sequenced-command acknowledgment.
A u64-domain value rendered as a decimal string.
^[0-9]+$"182390"