Skip to main content
POST
/
api
/
v1
/
order
/
cancel-all
Cancel All Orders
curl --request POST \
  --url https://api.ekiden.fi/api/v1/order/cancel-all \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sub_account_address": "<string>",
  "symbol": "<unknown>"
}
'
{
  "exit_info": {
    "Error": {
      "code": 1,
      "msg": "<string>"
    }
  },
  "result": [
    {
      "order_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "order_link_id": "<unknown>"
    }
  ],
  "time": "1672531200000"
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Request to cancel all orders, optionally filtered by symbol TODO: Cancels up to 500 orders per request TODO: System picks up 500 orders randomly to cancel when you have over 500 orders

sub_account_address
string
required
symbol
null | string
Example:

"BTCUSDC"

Response

200 - application/json

Orders canceled

exit_info
object
required

Information about the exit status of the cancel all operation.

result
object[]
required
time
string<date-time>
required
Example:

"1672531200000"