Error Format

All error responses use the following format:

{
    "code": "ERROR_CODE",
    "message": "Human-readable error description"
}

Validation Errors (1001–1023)

CodeSlugDescription
1001REQUIRED_FIELDA required field is missing
1002INVALID_FORMATInvalid request format
1003INVALID_QUANTITYInvalid order quantity/amount
1004INVALID_PRICEInvalid order price
1006INVALID_ORDER_TYPEInvalid order type
1007INVALID_SIDEInvalid order side
1009INVALID_STOP_PRICEInvalid stop price
1010INVALID_PAIRInvalid trading pair
1011ORDER_NOT_FOUNDOrder not found
1012INVALID_CURRENCYInvalid currency
1013REFERRAL_EXISTSReferral already exists
1014PAIR_EXISTSPair already exists
1015BALANCE_LOCK_NOT_FOUNDBalance lock not found
1016PAIR_NOT_FOUNDPair not found
1017INVALID_PRECISIONInvalid decimal precision
1018INVALID_ORDER_SIZEOrder size out of allowed range
1019CURRENCY_EXISTSCurrency already exists
1020CURRENCY_NOT_FOUNDCurrency not found
1021FEE_RULE_NOT_FOUNDFee rule not found
1022FEE_TIER_NOT_FOUNDFee tier not found
1023INVALID_FEE_RATEInvalid fee rate

Business Logic Errors (2000–2999)

CodeSlugDescription
2002INSUFFICIENT_FUNDSInsufficient balance to complete the operation

System Errors (3000–3999)

CodeSlugDescription
3003SERVICE_OVERLOADEDService is temporarily overloaded, retry later
3004INTERNAL_ERRORInternal server error

Authentication Errors

Authentication errors return standard HTTP status codes with a descriptive message.

HTTP StatusErrorDescription
401INVALID_SECRETAPI secret is incorrect
401AUTH_ERRORGeneral authentication failure
403API_KEY_DELETEDAPI key has been deleted
403ACCOUNT_INACTIVEAccount is inactive or suspended
403DEPARTMENT_MISMATCHAPI key does not belong to the target department
403IP_NOT_ALLOWEDRequest IP is not in the API key whitelist
404API_KEY_NOT_FOUNDAPI key does not exist