Bot Orchestration
Stop Bot
Stop a bot with the specified configuration.
Sends a stop command to a running bot instance via MQTT. This gracefully stops the trading script, optionally cancels open orders, and updates the bot run record in the database with final performance status.
Important: This endpoint only stops the trading script within the container. The Docker container continues running and can be restarted with start-bot. To completely remove a bot and archive its data, use stop-and-archive-bot instead.
The endpoint captures the bot's final performance status before stopping, which is then persisted to the database for historical tracking.
post/bot-orchestration/stop-bot
Request body
Example request
{
"bot_name": "my-trading-bot-20240115-143022"
}Response
Successful Response
{"stackTrail":"paths:/bot-orchestration/stop-bot:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}