Skip to main content

Switch Pause of DCA Bot (REST)


Permissions: dca_bot:write
Weight: 2
POST 

/open_api/dca_bots/:code/switch-pause

Switching pause stops an active DCA Bot or starts a fully paused one. Bots in paused_with_unrealized state cannot use this cabinet action. Check current status before calling. When pausing, stopCondition is required. stop_only leaves positions open; stop_and_close_all requests closing them. When starting, omit stopCondition. Starting resumes automated trading and runs the cabinet subscription checks. If 2FA is enabled, send twoFactorCode; a response with 2faComplete set to false means no change was made.

Request​

Responses​

Switching pause stops an active DCA Bot or starts a fully paused one. Bots in paused_with_unrealized state cannot use this cabinet action. Check current status before calling. When pausing, stopCondition is required. stop_only leaves positions open; stop_and_close_all requests closing them. When starting, omit stopCondition. Starting resumes automated trading and runs the cabinet subscription checks. If 2FA is enabled, send twoFactorCode; a response with 2faComplete set to false means no change was made.