Switch Pause of DCA Bot (REST)
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
- 200
- 401
- 405
- 429
- 500
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.
Authentication error.
Not allowed to perform action.
Rate Limit exceeded.
Response Headers
The maximum number of tokens allowed in the current period
1200The number of remaining tokens in the current period
0Time at which the current rate limit resets (UNIX timestamp in milliseconds)
1773649807000Internal server error.
Response Headers
The maximum number of tokens allowed in the current period
1200The number of remaining tokens in the current period
1050Time at which the current rate limit resets (UNIX timestamp in milliseconds)
1773649807000