Cancel all orders
Cancels every resting order of a user within the requested scope: `all`, a single `instrument`, or a whole `product`. Cancelling zero orders succeeds with an empty `cancelled` list. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.
Cancels every resting order of a user within the requested scope: all, a
single instrument, or a whole product. Cancelling zero orders succeeds
with an empty cancelled list. Requires an Authorization: Bearer SIWE
token proving control of user; otherwise 401.
bearer_authAuthorizationBearer <token>application/json- body
Request body for DELETE /orders.
instrument?|Instrument identifier in hex (required for instrument scope, rejected otherwise)
product_ptr?|Product pointer address in hex (required for product scope, rejected otherwise)
scope*CancelAllScopeWhich of the user's resting orders to cancel
"all""instrument""product"user*stringUser address in hex format (0x prefix optional)
Orders cancelled
application/json- response
Reply body for DELETE /orders. Cancelling zero orders is a success with an
empty cancelled list.
count is cancelled.len(). The WebSocket cancel_all_ack deliberately
omits it: that frame is chunked, so a per-frame count would be ambiguous
against a total.
cancelled*array<>The cancelled orders (empty when nothing matched the scope)
count*integerNumber of orders cancelled (cancelled.len())
0 <= valueexchange_ts_micros*integerExchange timestamp in microseconds since the Unix epoch
int64scope*stringThe scope that was swept
curl -X DELETE 'https://testnet-api.scalar.market/orders' \
-H 'Content-Type: application/json' \
-d '{
"scope": "all",
"user": "string"
}'{
"cancelled": [
{
"client_tag": "string",
"executed_quantity": 0,
"instrument": "string"
}
],
"count": 0,
"exchange_ts_micros": 0,
"scope": "string"
}WebSocket Protocols
WebSocket protocol reference for the Scalar trading and market-data feeds.
Cancel an order DELETE
Cancels a resting order by user, instrument, and client tag, and returns the executed quantity if it was partially filled. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.