Skip to main content
DELETE
/
api
/
v1
/
orders?market=ETH-USD
Cancel orders by market or across all markets
curl --request DELETE \
  --url 'https://order.trade.rails.xyz/api/v1/orders?market=ETH-USD' \
  --header 'Authorization: Bearer <token>'
{
  "message": "Cancelling 1 order for market ETH-USD without any errors"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

market
string
required

Market name. Example value: ETH-USD. To get all supported markets, call /api/v1/markets endpoint. To cancel orders across all markets, use the value all.

clientRequestId
string

Client-generated UUID for correlation. Example value: 0835bf3e-4a20-41f0-908d-8213f2b7a285. If not provided, a random UUID will be generated.

Response

200 - application/json
message
string
required

A message describing the result of the cancel orders operation.