# Activate panic mode

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

Part of [Hoppers](https://www.cryptohopper.com/api-documentation/api-reference/hoppers.md) in the Cryptohopper API reference.

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

OAuth scope: `trade`, `manage`

## Headers

| Name | Type | Required | Description |
|---|---|---|---|
| `access-token` | string | yes | The OAuth access token of the user. |

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Hopper ID. |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `market_orders` | string | no | Set to 1 to sell with market orders. Default 0. |

## Example request

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

## Response

Example response (illustrative values):

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

Status codes: 200, 400, 404. Errors return JSON with `status`, `error` and `message`, plus a numeric `code` when the error comes from the API itself rather than the gateway.
