Stop Grid Bot (REST)
POST/open_api/grid_bots/:code/stop
Stop a running Grid Bot through the cabinet action. stop_only keeps positions open; stop_and_close_all requests closing them; stop_and_close_all_and_convert_to_profit_currency also converts proceeds and is spot only. For webhook bots, awaitStartSignal true moves to waiting for a new start alert; false stops fully. The cabinet form defaults to true for webhook bots, but this API defaults to false if omitted. A 2FA response of {"2faComplete":false} means no change was made.
Request
Responses
- 200
- 401
- 405
- 429
- 500
Stop a running Grid Bot through the cabinet action. stop_only keeps positions open; stop_and_close_all requests closing them; stop_and_close_all_and_convert_to_profit_currency also converts proceeds and is spot only. For webhook bots, awaitStartSignal true moves to waiting for a new start alert; false stops fully. The cabinet form defaults to true for webhook bots, but this API defaults to false if omitted. A 2FA response of {"2faComplete":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