Switch DCA Bot Pause (MCP Tool)
Description
Based on: /docs/rest-api/switch-pause-of-dca-bot
This action toggles state. For an active bot, send stopCondition: "stop_only" to keep positions open, or "stop_and_close_all" to request closing them. For a fully paused bot, omit stopCondition to restart trading. The paused_with_unrealized state cannot use this action. Check status first so a repeated call does not reverse the result. Send twoFactorCode when the account requires 2FA. A response with 2faComplete: false means no state change.
Required permission: dca_bot:write.
Prompt example
Pause DCA Bot bot-code and keep its open positions.
Input Schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"minLength": 1,
"description": "Code that identifies the bot, available in bot list results."
},
"stopCondition": {
"type": "string",
"enum": [
"stop_only",
"stop_and_close_all"
],
"description": "Required to pause an active bot. stop_only leaves positions open; stop_and_close_all requests closing them. Omit to resume a paused bot."
},
"twoFactorCode": {
"type": "string",
"description": "Current authenticator code if two-factor authentication is enabled for this account."
}
},
"required": [
"code"
],
"additionalProperties": false
}