Cancel all open orders

DELETE https://api.cryptohopper.com/v1/hopper/{id}/order/all

Sends a cancel request to the exchange for every open order of the hopper.

OAuth scope: read manage About scopes

The cancel requests are queued, so orders can still be open for a short time after the response. The same message is returned when the hopper has no open orders.

Example request

curl -X DELETE "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/order/all" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

NameTypeRequiredDescription
access-token string Optional The OAuth access token of the user.

Path parameters

NameTypeRequiredDescription
id string Required Hopper ID.

Response

Example response (illustrative values)

{
    "data": "All orders have been cancelled."
}

Status codes: 200. Errors return JSON with status, error and message. See How the API works for response codes and rate limits.