POST

/api/v1/bots/dca//close-market

Permission: BOTS_WRITESecurity: BEARER_JWT

Immediately closes all active open positions and deals of the specified DCA Bot at the current market price (panic sell), cancels all pending limit and safety orders on the connected exchange, and transitions the bot into stopped status.

See DCA Bot Entity for full attribute definitions
DCA Bot Entity

Path Parameters

iduuid required

Unique UUID identifier of the DCA Bot entity whose open deals should be closed.

Example Request

POSTPOST /api/v1/bots/dca/7c9e6679-7425-40de-944b-e07fc1f90ae7/close-market

Example Responses

Returns status confirmation when orders are successfully liquidated at market price.

close_dca_bot_200.json
200 OK
{
  "status": "success",
  "message": "All active deals closed at market price and bot stopped",
  "bot_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7"
}