Bot Error Codes
HTTP-level error codes returned by the Bot APIs.
Futures Combo Bot
Applies to: Create, Close, Get Detail, Get Limit
| error_code | error_msg | Applicable Endpoint(s) |
|---|---|---|
| 400 | Invalid request parameters | All |
| 401 | Authentication required | All |
| 421 | User group banned — ban_reason_text contains the localized reason | Create |
| 429 | Rate limit exceeded | All |
Futures Grid Bot
Applies to: Create, Close, Get Detail, Validate Input
| error_code | error_msg | Applicable Endpoint(s) |
|---|---|---|
| 400 | Invalid request parameters | All |
| 401 | Authentication required | All |
| 421 | User group banned — ban_reason_text contains the localized reason | Create |
| 429 | Rate limit exceeded | All |
Futures Martingale Bot
Applies to: Create, Close, Get Detail, Get Limit
| error_code | error_msg | Applicable Endpoint(s) |
|---|---|---|
| 400 | Invalid request parameters | All |
| 401 | Authentication required | All |
| 421 | User group banned — ban_reason_text contains the localized reason | Create |
| 429 | Rate limit exceeded | All |
DCA Bot
| error_code | error_msg | Applicable Endpoint(s) |
|---|---|---|
| 400 | Invalid parameters (e.g., duplicated symbols, invalid frequency) | Create |
| 421 | User is banned | Create |
| 503 | Bot cannot be closed currently (investment cycle in progress) | Close |
Spot Grid Bot
Applies to: Create, Close, Get Detail, Validate Input
| error_code | error_msg | Applicable Endpoint(s) |
|---|---|---|
| 400 | Invalid request parameters | Create, Validate Input |
| 401 | Insufficient balance | Create |
| 404 | Grid bot not found | Get Detail |
| 405 | Grid cannot be cancelled (already in CANCELLING or COMPLETED state) | Close |
| 421 | User is banned | Create |