PATCH /target-volume/stop/:id
Stop a running order before it reaches its target.
The order moves to STOPPING: the bot sells what it holds and closes.
When it is done the order ends as STOPPED. A stop cannot be undone.
Path params
| Param | Required | Description |
|---|---|---|
id | yes | Order _id. |
Response 200
{ "order": { "_id": "6730…", "eStatus": "2", "sStatus": "STOPPING", "…": "…" } }
Errors
| Status | Meaning |
|---|---|
400 | Invalid order id. |
404 | Order not found or not owned. |
409 | The order is not running, or a stop was already requested. |
Example
curl -X PATCH "$BASE_URL/target-volume/stop/6730…" \
-H "Authorization: Bearer $ACCESS" \
-H "x-user-id: $USER_ID"