# Cancel market maker

`POST https://api.cryptohopper.com/v1/hopper/{id}/marketmaker/cancel`

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

Cancels the market maker orders listed in marketmaker_ids: buy and sell orders that are still open are cancelled on the exchange and the market makers are marked cancelled.

OAuth scope: `read`, `manage`

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

## Headers

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

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Hopper ID of a market maker bot. |

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/marketmaker/cancel" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"marketmaker_ids":[7700001,7700002]}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "Selected market maker(s) are cancelled."
}
```

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