POST https://api.cryptohopper.com/v1/hopper/{id}/arbitrage/exchange/cancel

Cancels the open exchange arbitrages listed in arbitrage_ids: their open orders are cancelled on the exchanges and the arbitrages are marked cancelled.

OAuth scope: read manage About scopes

When only some arbitrages are found, the found ones are cancelled and the message says not all were cancelled.

Example request

curl -X POST "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/arbitrage/exchange/cancel" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"arbitrage_ids":[2397001,2397002]}'

Parameters

Headers

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

Path parameters

NameTypeRequiredDescription
id string Required Hopper ID of an arbitrage bot.

Response

Example response (illustrative values)

{
    "data": "Selected arbitrage(s) are cancelled."
}

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