Skip to main content

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​

ParamRequiredDescription
idyesOrder _id.

Response 200​

{ "order": { "_id": "6730…", "eStatus": "2", "sStatus": "STOPPING", "…": "…" } }

Errors​

StatusMeaning
400Invalid order id.
404Order not found or not owned.
409The 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"