Cancel an order
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.
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.
bearer_authAuthorizationBearer <token>client_tag*stringClient tag in hex format (0x prefix optional)
user*stringUser address in hex format (0x prefix optional)
instrument*stringInstrument identifier in hex format (0x prefix optional)
Order cancelled
application/json- response
The engine cancelled a resting order. Failures come back as an error
envelope; in particular a cancel that lost a race to a fill or an expiry is
order_not_found, which is benign.
client_tag*stringClient tag as 0x-prefixed lowercase hex
exchange_ts_micros*integerExchange timestamp in microseconds since the Unix epoch
int64executed_quantity*integerQuantity already executed before cancellation, in whole contracts
int640 <= valueinstrument*stringInstrument identifier as 0x-prefixed lowercase hex
user*stringUser address as 0x-prefixed lowercase hex
curl -X DELETE 'https://testnet-api.scalar.market/orders/string?user=string&instrument=string'{
"client_tag": "string",
"exchange_ts_micros": 0,
"executed_quantity": 0,
"instrument": "string",
"user": "string"
}Cancel all orders DELETE
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.
Get account balance and margin GET
Returns the current balance and margin requirement for a user, after any accepted withdrawals have been subtracted from balance. Requires an `Authorization: Bearer` SIWE token proving control of `user`; otherwise 401.