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

Sends a cancel request for one open order to the exchange.

OAuth scope: read manage About scopes

The cancel request is queued, so the order can still be open for a short time after the response.

Example request

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

Parameters

Headers

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

Path parameters

NameTypeRequiredDescription
order_id string Required Cryptohopper order ID (the id field of Get open orders), not the exchange order ID.
id string Required Hopper ID.

Response

Example response (illustrative values)

{
    "data": "Canceled order 342000001"
}

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