Skip to main content

Bot Error Codes

HTTP-level error codes returned by the Bot APIs.

Futures Combo Bot​

Applies to: Create, Close, Get Detail, Get Limit

error_codeerror_msgApplicable Endpoint(s)
400Invalid request parametersAll
401Authentication requiredAll
421User group banned — ban_reason_text contains the localized reasonCreate
429Rate limit exceededAll

Futures Grid Bot​

Applies to: Create, Close, Get Detail, Validate Input

error_codeerror_msgApplicable Endpoint(s)
400Invalid request parametersAll
401Authentication requiredAll
421User group banned — ban_reason_text contains the localized reasonCreate
429Rate limit exceededAll

Futures Martingale Bot​

Applies to: Create, Close, Get Detail, Get Limit

error_codeerror_msgApplicable Endpoint(s)
400Invalid request parametersAll
401Authentication requiredAll
421User group banned — ban_reason_text contains the localized reasonCreate
429Rate limit exceededAll

DCA Bot​

Applies to: Create, Close

error_codeerror_msgApplicable Endpoint(s)
400Invalid parameters (e.g., duplicated symbols, invalid frequency)Create
421User is bannedCreate
503Bot cannot be closed currently (investment cycle in progress)Close

Spot Grid Bot​

Applies to: Create, Close, Get Detail, Validate Input

error_codeerror_msgApplicable Endpoint(s)
400Invalid request parametersCreate, Validate Input
401Insufficient balanceCreate
404Grid bot not foundGet Detail
405Grid cannot be cancelled (already in CANCELLING or COMPLETED state)Close
421User is bannedCreate