# Cancel TSB order

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

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

Removes a trailing buy order, so no buy order is placed for it, and recalculates the hopper's reserved balances.

OAuth scope: `read`, `manage`

Not available for arbitrage, market maker, copy trading and grid bots. Returns an error when the trailing buy has already placed its buy order.

## Headers

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

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `order_id` | string | yes | ID of the trailing buy order (the id field of an order with order_type "Trailing buy" in Get open orders). |
| `id` | string | yes | Hopper ID. |

## Example request

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

## Response

Example response (illustrative values):

```json
{
    "data": "Deleted TSB order 19860001"
}
```

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.
