Skip to main content
POST
/
api
/
v1
/
order
/
cancel-batch
Batch Cancel Orders
curl --request POST \
  --url https://api.ekiden.fi/api/v1/order/cancel-batch \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "request": [
    {
      "sub_account_address": "<string>",
      "symbol": "BTCUSDC",
      "order_id": "<unknown>",
      "order_link_id": "<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

Batch cancel order request. You can cancel unfilled or partially filled orders. TODO: Maximum 20 orders per request

request
object[]
required

Response

200 - application/json

Orders canceled

Response of batch cancel orders.

exit_info
object[]
required

Information about the exit status of each order in the batch.

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

"1672531200000"