Activate panic mode

GET https://api.cryptohopper.com/v1/hopper/{id}/panicbutton

Queues panic mode for the hopper: it turns off buying, cancels open buy orders and sells all open positions.

OAuth scope: trade manage About scopes

Example request

curl "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/panicbutton" \
  -H "access-token: YOUR_ACCESS_TOKEN"

Parameters

Headers

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

Path parameters

NameTypeRequiredDescription
id string Required Hopper ID.

Query parameters

NameTypeRequiredDescription
market_orders string Optional Set to 1 to sell with market orders. Default 0.

Response

Example response (illustrative values)

{
    "data": "Panic mode requested."
}

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