# Split position

`POST https://api.cryptohopper.com/v1/hopper/{id}/position/split/{position_id}`

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

Splits one open position into two positions, one holding the given percentage of the amount and one holding the rest.

OAuth scope: `read`, `manage`

percentage must be above 0 and at most 100; it defaults to 50. Returns an error when the position is on hold, already sold, has an open order or is too small to split. Not available for copy bots.

## Headers

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

## Path parameters

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

## Example request

```bash
curl -X POST "https://api.cryptohopper.com/v1/hopper/HOPPER_ID/position/split/POSITION_ID" \
  -H "access-token: YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"percentage":25}'
```

## Response

Example response (illustrative values):

```json
{
    "data": "Positions have been splitted."
}
```

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.
